From 069560accc6558f16d6d9abea63bd7563ea3f0e9 Mon Sep 17 00:00:00 2001 From: Teemu Ikonen Date: Thu, 15 Jun 2023 20:29:57 +0300 Subject: [PATCH] web: Only catch aiohttp.ClientError exceptions on MLS query --- ols/locator/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ols/locator/web.py b/ols/locator/web.py index 011d0d7..eaa91a5 100644 --- a/ols/locator/web.py +++ b/ols/locator/web.py @@ -63,7 +63,7 @@ class WebLocator(LocatorBase): 'Unknown response with status code %d' % ( response.status)) - except Exception as e: + except aiohttp.ClientError as e: log.warning('Failed to get location: ' + str(e)) return None, None