Separate services - app, db, and job #1
|
@ -186,7 +186,7 @@ def raise_for_status(response):
|
||||||
try:
|
try:
|
||||||
msg = response.json().get('error', '')
|
msg = response.json().get('error', '')
|
||||||
except:
|
except:
|
||||||
pass
|
msg = response.text
|
||||||
raise Exception(f'HTTPError: {response.status_code} \n Message: {msg}')
|
raise Exception(f'HTTPError: {response.status_code} \n Message: {msg}')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user