CC-4092: Not checking for return type "None" on some function calls in media-monitor
-more fixes
This commit is contained in:
parent
ba5a749073
commit
fc1b69e1d1
2 changed files with 6 additions and 7 deletions
|
@ -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 []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue