Skip to content

Commit

Permalink
Skip string attributes in get_all_attrs function
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed Dec 7, 2024
1 parent 0310e4b commit fbfcbe9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fastkml/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def get_all_attrs(obj: object) -> Generator[object, None, None]:
return
for attr_name in attrs:
attr = getattr(obj, attr_name)
if isinstance(attr, str):
continue
try:
yield from attr
except TypeError:
Expand Down

0 comments on commit fbfcbe9

Please sign in to comment.