Fix json issues (#5865)

This commit is contained in:
Khushboo Vashi
2023-02-16 16:16:39 +05:30
committed by GitHub
parent a0b8676f61
commit 5f52bb59dd
3 changed files with 10 additions and 4 deletions

View File

@@ -374,7 +374,10 @@ class ColumnsView(PGChildNodeView, DataTypeReader):
if k in ('description',):
data[k] = v
else:
data[k] = json.loads(v, cls=ColParamsJSONDecoder)
try:
data[k] = json.loads(v, cls=ColParamsJSONDecoder)
except TypeError:
data[k] = v
required_args = {
'name': 'Name',