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