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
|
||||
|
||||
def check_response(self, resp):
|
||||
if resp.status != 200:
|
||||
if resp.status >= 400:
|
||||
raise EsiException(resp.status)
|
||||
return resp
|
||||
|
||||
|
||||
Reference in New Issue
Block a user