fix exception
This commit is contained in:
parent
79a2dfd13b
commit
81c4fea7f5
|
@ -491,8 +491,9 @@ class Schemas(models.Model):
|
||||||
try:
|
try:
|
||||||
if is_json:
|
if is_json:
|
||||||
return json.loads(field_value)
|
return json.loads(field_value)
|
||||||
except json.decoder.JSONDecodeError:
|
except Exception:
|
||||||
return field_value
|
pass
|
||||||
|
|
||||||
return field_value
|
return field_value
|
||||||
|
|
||||||
def _update_model_field(self, field_attr, field_value):
|
def _update_model_field(self, field_attr, field_value):
|
||||||
|
|
Loading…
Reference in New Issue