forked from shaba/openuds
Fixiung up og
This commit is contained in:
parent
8d3b28e3cb
commit
3038c545ce
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user