From bac3014db2a1ecd4905de502ba2d32c4475b28c8 Mon Sep 17 00:00:00 2001 From: thecalcc Date: Tue, 28 Nov 2023 15:25:22 +0100 Subject: [PATCH] Allow TypeError --- apps/validate/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/validate/validate.py b/apps/validate/validate.py index 03bb4e0cf4..f3c86d29ee 100644 --- a/apps/validate/validate.py +++ b/apps/validate/validate.py @@ -354,7 +354,7 @@ def _get_profile_schema(self, schema, doc): try: # avoid errors when cv is removed and value is still there schema["subject"]["schema"]["schema"]["scheme"].pop("allowed", None) - except KeyError: + except (KeyError, TypeError): pass return [{"schema": schema}]