소스 검색

Raise json error

Arkadiusz Ryś 2 년 전
부모
커밋
8871520c8d
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      graph_exploring_tool/query.py

+ 3 - 0
graph_exploring_tool/query.py

@@ -1,3 +1,4 @@
+import json.decoder
 from dataclasses import dataclass, field
 from typing import List
 from urllib.error import URLError
@@ -89,4 +90,6 @@ def perform_query(endpoint: str, query_text: str, post: bool = False) -> dict:
         raise
     except URLError:
         raise
+    except json.decoder.JSONDecodeError:
+        raise
     return ret