From eb0e54714be5b011c756b866830fb01499f2e782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Fri, 28 Apr 2023 13:51:41 +0200 Subject: [PATCH] fix add Jobs backend --- backend/flaschengeist_events/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/flaschengeist_events/routes.py b/backend/flaschengeist_events/routes.py index 6787528..e6542f6 100644 --- a/backend/flaschengeist_events/routes.py +++ b/backend/flaschengeist_events/routes.py @@ -24,8 +24,9 @@ def dict_get(self, key, default=None, type=None): if type is not None: try: rv = type(rv) - except ValueError: + except (ValueError, TypeError): rv = default + return rv