From 1b4efb5dd5f60f457d4100431d0f2d3d019d80c3 Mon Sep 17 00:00:00 2001 From: Lekuru Date: Thu, 19 Oct 2023 22:54:50 +0200 Subject: [PATCH] Remove `Exception as e` for `fetch_db` --- helpers/external/location.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/helpers/external/location.py b/helpers/external/location.py index 573ce37..52ee54c 100644 --- a/helpers/external/location.py +++ b/helpers/external/location.py @@ -71,8 +71,6 @@ def fetch_db(ip: str) -> Optional[Geolocation]: ) except AddressNotFoundError: return - except Exception as e: - app.session.logger.warning(e) def fetch_web(ip: str, is_local: bool = False) -> Optional[Geolocation]: response = app.session.requests.get(f'http://ip-api.com/line/{ip if not is_local else ""}')