always show 400 response.content after POST
This commit is contained in:
parent
1bdb888703
commit
471887eac0
2
push.py
2
push.py
|
@ -135,7 +135,7 @@ def alkira_post(session, uri, body):
|
|||
try:
|
||||
response = session.post(url, data=json.dumps(body), headers=headers)
|
||||
if response.status_code == 400:
|
||||
logging.debug(response.content)
|
||||
logging.info(response.content)
|
||||
response.raise_for_status()
|
||||
except Exception as e:
|
||||
logging.error(f'Error: {str(e)}')
|
||||
|
|
Loading…
Reference in New Issue