fix potential exception
This commit is contained in:
parent
82d4ee09ae
commit
bed2a0731b
2 changed files with 6 additions and 1 deletions
|
@ -452,7 +452,7 @@ class AirTimeApiClient(ApiClientInterface):
|
|||
response = self.get_response_from_server(url)
|
||||
response = json.loads(response)
|
||||
except Exception, e:
|
||||
response = None
|
||||
response = {}
|
||||
logger.error("Exception: %s", e)
|
||||
|
||||
return response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue