Closed zxdavb closed 5 years ago
Woops:
if response.status_code != requests.codes.ok: # pylint: disable=no-member if 'code' in response.text: # don't use response.json()! message = ("HTTP Status = " + str(response.status_code) + ", Response = " + response.text) raise requests.HTTPError(message)
Has a logic error - if not 200, but no 'code' in response.text, will just fall through.
Woops:
Has a logic error - if not 200, but no 'code' in response.text, will just fall through.