Skip to content

Commit

Permalink
The date parsing has started to fail with date-looking things. Only a…
Browse files Browse the repository at this point in the history
…llow if actually allowing.
  • Loading branch information
wtgee committed Dec 6, 2023
1 parent 06531a9 commit 24abdef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panoptes/utils/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def deserialize_all_objects(obj):
return u.Quantity(obj)

# Try to parse a ISO-8061 datetime string.
with suppress(TypeError, ValueError):
with suppress(TypeError, ValueError, KeyError):
return date_parse(obj)

return obj
Expand Down

0 comments on commit 24abdef

Please sign in to comment.