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:
Martin Konecny 2013-02-03 00:40:41 -05:00
parent 71b811348b
commit 34eee60bee
2 changed files with 108 additions and 35 deletions

View file

@ -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