diff --git a/test/plugins/test_sync_protocol.py b/test/plugins/test_sync_protocol.py index 75a283ad..9d46cf26 100644 --- a/test/plugins/test_sync_protocol.py +++ b/test/plugins/test_sync_protocol.py @@ -58,7 +58,10 @@ def _get_data(api_token, node_url): try: response = requests.get(node_url + API_ENDPOINT, headers=headers, timeout=5) if response.status_code == 200: - return response.json() + try: + return response.json() + except json.JSONDecodeError: + pass except requests.RequestException: pass return ""