Skip to content

Commit

Permalink
also catch type error for userid being None
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongundel authored and chiatt committed Aug 30, 2024
1 parent df4533e commit 3449318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arches/app/models/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1170,7 +1170,7 @@ def get_instance_creator(self) -> int:
if create_record:
try:
creatorid = int(create_record.userid)
except ValueError:
except (ValueError, TypeError):
pass

if creatorid is None:
Expand Down

0 comments on commit 3449318

Please sign in to comment.