From b0c401f36f2b40999e06dcc010111dd024839386 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Thu, 6 Jan 2022 12:33:06 +0000 Subject: [PATCH] Add more error handling to Agora API calls --- handler/agora.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handler/agora.py b/handler/agora.py index 655d02e..8e2dc75 100644 --- a/handler/agora.py +++ b/handler/agora.py @@ -49,7 +49,10 @@ class Agora(object): """ 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 = {} if "data" not in dash["response"].keys(): self.log.error("Data not in dashboard response: {content}", content=dash)