Skip to content

Commit

Permalink
WI21-66 http response code is int not str
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-kwiatkowski-wizzdev committed Feb 17, 2021
1 parent 3330e2c commit 7e2b47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MicroPython/src/communication/API_communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7e2b47a

Please sign in to comment.