From 81c4fea7f58ac4d72fbaa711dd08df832bd1962a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 29 Jan 2024 12:05:07 +0100 Subject: [PATCH] fix exception --- idhub/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/idhub/models.py b/idhub/models.py index ec808d9..fea0156 100644 --- a/idhub/models.py +++ b/idhub/models.py @@ -491,8 +491,9 @@ class Schemas(models.Model): try: if is_json: return json.loads(field_value) - except json.decoder.JSONDecodeError: - return field_value + except Exception: + pass + return field_value def _update_model_field(self, field_attr, field_value):