From 7c6e2c6961f5b39c2f456ab20a088575fd282bbe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 18 Jun 2021 12:54:49 +0100 Subject: [PATCH] Remove redundant check --- session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.py b/session.py index 0ade43feb..c1ad5087e 100644 --- a/session.py +++ b/session.py @@ -119,7 +119,7 @@ def getJson(session, url: str, headers: {}, params: {}, debug: bool, print('WARN: getJson Forbidden url: ' + url) elif result.status_code == 404: print('WARN: getJson Not Found url: ' + url) - elif result.status_code != 200: + else: print('WARN: getJson url: ' + url + ' failed with error code ' + str(result.status_code))