From f8a8a8fea43cdbb989aca4956eefd4c07a988de0 Mon Sep 17 00:00:00 2001 From: "Ajin.Abraham" Date: Sat, 16 Dec 2023 22:01:15 -0800 Subject: [PATCH] QA --- mobsf/MobSF/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobsf/MobSF/utils.py b/mobsf/MobSF/utils.py index ba88e8a89a..52848aa55f 100755 --- a/mobsf/MobSF/utils.py +++ b/mobsf/MobSF/utils.py @@ -492,7 +492,8 @@ def update_local_db(db_name, url, local_file): else: logger.info('%s Database is up-to-date', db_name) return update - except requests.exceptions.ReadTimeout: + except (requests.exceptions.ReadTimeout, + requests.exceptions.ConnectionError): logger.warning('Failed to download %s DB.', db_name) except Exception: logger.exception('[ERROR] %s DB Update', db_name)