Skip to content

Commit

Permalink
Raise error if a non-existing string-type path is passed
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Nov 18, 2024
1 parent a96020d commit d8adde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adam/model/std_factories/std_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_xml_string(path: str | pathlib.Path):

# Checking if it is a path or an urdf
if not isPath:
if len(path) <= MAX_PATH and os.path.exists(path):
if len(path) <= MAX_PATH:
path = pathlib.Path(path)
isPath = True
else:
Expand Down

0 comments on commit d8adde6

Please sign in to comment.