fix exception

This commit is contained in:
Cayo Puigdefabregas 2024-01-29 12:05:07 +01:00
parent 79a2dfd13b
commit 81c4fea7f5
1 changed files with 3 additions and 2 deletions

View File

@ -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):