Skip to content

Commit

Permalink
Fix error on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
flferretti committed Sep 20, 2024
1 parent b9e1cb0 commit 7d2f865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rod/sdf/sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def load(sdf: pathlib.Path | str, is_urdf: bool | None = None) -> Sdf:
try:
xml_dict = xmltodict.parse(xml_input=sdf_string)
except Exception as exc:
raise exc("Failed to parse 'sdf' argument") from exc
raise RuntimeError("Failed to parse 'sdf' argument") from exc

# Look for the top-level <sdf> element
try:
Expand Down

0 comments on commit 7d2f865

Please sign in to comment.