Commit d01b1ab9 authored by Aaron Hill's avatar Aaron Hill
Browse files

Accept 200, 201, and 202 as non-error response codes

parent 1928fe36
......@@ -165,7 +165,7 @@ def bind_api(**config):
# If an error was returned, throw an exception
self.api.last_response = resp
if resp.status != 200:
if resp.status not in [200, 201, 202]:
try:
error_msg = self.api.parser.parse_error(resp.read())
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