CC-4910: Need to properly handle non-200 http status codes in api client
-wrap all service calls in exception
This commit is contained in:
parent
71b811348b
commit
34eee60bee
2 changed files with 108 additions and 35 deletions
|
@ -15,4 +15,7 @@ elif dj_type == '--dj':
|
|||
|
||||
response = api_clients.check_live_stream_auth(username, password, source_type)
|
||||
|
||||
print response['msg']
|
||||
if 'msg' in response:
|
||||
print response['msg']
|
||||
else:
|
||||
print False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue