Skip to content

Commit 023c33b

Browse files
committed
add missing error type
1 parent acd3dab commit 023c33b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/somesy/fortran/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def _to_person(person_obj: Any) -> Person:
9494
"""Cannot convert from free string to person object."""
9595
try:
9696
return Person.from_name_email_string(person_obj)
97-
except ValueError:
97+
except (ValueError, AttributeError):
9898
logger.warning(f"Cannot convert {person_obj} to Person object.")
9999
return None
100100

0 commit comments

Comments
 (0)