From 253c9d1cc15d1c86bf174d241272ed7a5e3c0c24 Mon Sep 17 00:00:00 2001 From: xuxiaofei Date: Sun, 20 Sep 2020 00:03:06 +0800 Subject: [PATCH] fix: finally => except --- vislib/views/source.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vislib/views/source.py b/vislib/views/source.py index 8142271..77abe85 100644 --- a/vislib/views/source.py +++ b/vislib/views/source.py @@ -99,7 +99,7 @@ def sourceTables(request, sourceId): for table in tables: json_data.append(table['fields']) - finally: + except: source = SourceDataBase.objects.get(source_id=sourceId) source = serializers.serialize('json', [source]) source = json.loads(source)[0]['fields'] @@ -165,7 +165,7 @@ def sourceLinkedTables(request, sourceId): json_data = [] for table in tables: json_data.append(table['fields']) - finally: + except: json_data = []