From 13d7c782eded31cc3119ae4e20d7d939ec0fc64b Mon Sep 17 00:00:00 2001 From: Benjamin Collet Date: Tue, 14 Nov 2017 10:51:58 +0100 Subject: [PATCH] Fix --- client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client.py b/client.py index 5608f84..1591020 100755 --- a/client.py +++ b/client.py @@ -14,6 +14,9 @@ def call_api(params, path): except: return + if response.status_code is not 200: + return + return response.json() def print_data(key, value, suffix = None):