Only raise exception for status code > 400 (was previously excluding 201 and the like)

This commit is contained in:
blitzmann
2018-05-07 22:09:31 -04:00
parent f4fd991907
commit dbdc566ae4

View File

@@ -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