From 5e9be64857aee68ac997feee708b15199417a7d6 Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Wed, 6 Dec 2023 09:45:37 -1000 Subject: [PATCH] Suppress all exceptions so only work when it works. --- src/panoptes/utils/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/panoptes/utils/serializers.py b/src/panoptes/utils/serializers.py index 74e39573..99ff451f 100644 --- a/src/panoptes/utils/serializers.py +++ b/src/panoptes/utils/serializers.py @@ -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, KeyError): + with suppress(Exception): return date_parse(obj) return obj