aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.py b/Utils.py
index f3363c5a..092946df 100644
--- a/Utils.py
+++ b/Utils.py
@@ -86,7 +86,7 @@ def get_url(url, **kwargs):
break
response_content = response_content.decode(encoding or "utf8")
data = response_content
- if kwargs.get("json"):
+ if kwargs.get("json") and data:
try:
data = json.loads(response_content)
except json.decoder.JSONDecodeError: