Skip to content

Commit 2c19947

Browse files
committed
add correct error type
1 parent 8026e4e commit 2c19947

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/somesy/rust/writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _to_person(person_obj: str) -> Person:
8989
"""Parse rust person string to a Person. It has format "full name <email>." but email is optional."""
9090
try:
9191
return Person.from_name_email_string(person_obj)
92-
except ValueError:
92+
except (ValueError, AttributeError):
9393
return None
9494

9595
@classmethod

0 commit comments

Comments
 (0)