Skip to content

Commit

Permalink
Fix crash on paths without a data attribute
Browse files Browse the repository at this point in the history
Default the retrieved data attribute value to the empty string
instead of None.
  • Loading branch information
dojoe committed Apr 27, 2024
1 parent 6e385af commit 74109ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion svgelements/svgelements.py
Original file line number Diff line number Diff line change
Expand Up @@ -9233,7 +9233,7 @@ def parse(
if SVG_TAG_PATH == tag:
# Delayed path parsing, for partial paths.
s = Path(values, pathd_loaded=True)
s.parse(values.get(SVG_ATTR_DATA))
s.parse(values.get(SVG_ATTR_DATA, ""))
elif SVG_TAG_CIRCLE == tag:
s = Circle(values)
elif SVG_TAG_ELLIPSE == tag:
Expand Down

0 comments on commit 74109ab

Please sign in to comment.