Add more error handling to Agora API calls
This commit is contained in:
parent
f6da15decd
commit
b0c401f36f
|
@ -49,7 +49,10 @@ class Agora(object):
|
||||||
"""
|
"""
|
||||||
Calls hooks to parse dashboard info and get all contact messages.
|
Calls hooks to parse dashboard info and get all contact messages.
|
||||||
"""
|
"""
|
||||||
dash = self.agora.dashboard_seller()
|
try:
|
||||||
|
dash = self.agora.dashboard_seller()
|
||||||
|
except ReadTimeout:
|
||||||
|
return False
|
||||||
dash_tmp = {}
|
dash_tmp = {}
|
||||||
if "data" not in dash["response"].keys():
|
if "data" not in dash["response"].keys():
|
||||||
self.log.error("Data not in dashboard response: {content}", content=dash)
|
self.log.error("Data not in dashboard response: {content}", content=dash)
|
||||||
|
|
Loading…
Reference in New Issue