web: Only catch aiohttp.ClientError exceptions on MLS query

This commit is contained in:
Teemu Ikonen
2023-06-15 20:29:57 +03:00
parent 29ab612439
commit 069560accc

View File

@@ -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