Fixiung up og

This commit is contained in:
Adolfo Gómez García 2017-09-29 11:09:35 +02:00
parent 8d3b28e3cb
commit 3038c545ce

View File

@ -73,7 +73,7 @@ def ensureResponseIsValid(response, errMsg=None):
err = response.json()['message'] # Extract any key, in case of error is expected to have only one top key so this will work
except Exception:
err = response.content
errMsg = '{}: {}, ({})'.format(errMsg, err, response.code)
errMsg = '{}: {}, ({})'.format(errMsg, err, response.status_code)
logger.error('{}: {}'.format(errMsg, response.content))
raise Exception(errMsg)