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