Only raise exception for status code > 400 (was previously excluding 201 and the like)
This commit is contained in:
@@ -172,7 +172,7 @@ class Esi(object):
|
|||||||
return resp.data
|
return resp.data
|
||||||
|
|
||||||
def check_response(self, resp):
|
def check_response(self, resp):
|
||||||
if resp.status != 200:
|
if resp.status >= 400:
|
||||||
raise EsiException(resp.status)
|
raise EsiException(resp.status)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user