CC-4092: Not checking for return type "None" on some function calls in media-monitor

-more fixes
This commit is contained in:
Martin Konecny 2012-07-11 17:09:17 -04:00
parent ba5a749073
commit fc1b69e1d1
2 changed files with 6 additions and 7 deletions

View file

@ -456,8 +456,8 @@ class AirTimeApiClient(ApiClientInterface):
logger.error("Exception: %s", e)
try:
return getattr(response, "files")
except AttributeError:
return response["files"]
except KeyError:
self.logger.error("Could not find index 'files' in dictionary: %s", str(response))
return []