Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions py_trees/parsers/behaviour_tree_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,8 @@ def resolve_direct_value_remapping(key: str, remapping_table: dict[str, str]) ->
The resolved value from the remapping table.

Raises:
ValueError: If the prefixed key is not found in the remapping table or is of invalid format.
ValueError: If the prefixed key is not found in the remapping table.
"""
if key.startswith("/"):
raise ValueError(f"Key '{key}' is of invalid format")

encoded_key = key.replace(".", DOT_REPLACEMENT)
key = f"{CONST_PREFIX}{encoded_key}"

Expand Down
Loading