From 7e2b47a2ea5ef9ca77f5fac34b7c7f6cd37049b8 Mon Sep 17 00:00:00 2001 From: Piotr Kwiatkowski Date: Wed, 17 Feb 2021 15:17:10 +0100 Subject: [PATCH] WI21-66 http response code is int not str --- MicroPython/src/communication/API_communication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MicroPython/src/communication/API_communication.py b/MicroPython/src/communication/API_communication.py index 19283af..108e004 100644 --- a/MicroPython/src/communication/API_communication.py +++ b/MicroPython/src/communication/API_communication.py @@ -26,7 +26,7 @@ def authorization_request() -> str: logging.info("Failed to authorize in API {}".format(e)) return None - if response.status_code != '200': #and response.status_code != 200: + if response.status_code != '200' and response.status_code != 200: logging.error(response.text) return None