Commit 288c4e4f authored by Aaron Hill's avatar Aaron Hill
Browse files

It's status_code, not status, in Requests

parent 431dd761
......@@ -188,7 +188,7 @@ def bind_api(**config):
# If an error was returned, throw an exception
self.api.last_response = resp
if resp.status and not 200 <= resp.status < 300:
if resp.status_code and not 200 <= resp.status_code < 300:
try:
error_msg = self.parser.parse_error(resp.text)
except Exception:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment