diff --git a/ghunt/helpers/gmaps.py b/ghunt/helpers/gmaps.py index 4a34e3a8..7a215c36 100644 --- a/ghunt/helpers/gmaps.py +++ b/ghunt/helpers/gmaps.py @@ -289,7 +289,7 @@ def calculate_probable_location(geolocator: Nominatim, reviews_and_photos: List[ try: location = geolocator.reverse(f"{avg[0]}, {avg[1]}", timeout=10).raw["address"] break - except: + except Exception: pass location = sanitize_location(location) locs[nb]["avg"] = location diff --git a/ghunt/helpers/utils.py b/ghunt/helpers/utils.py index ce03d60b..cd43f1e7 100644 --- a/ghunt/helpers/utils.py +++ b/ghunt/helpers/utils.py @@ -54,7 +54,7 @@ def is_headers_syntax_good(headers: Dict[str, str]) -> bool: try: httpx.Headers(headers) return True - except: + except Exception: return False async def get_url_image_flathash(as_client: httpx.AsyncClient, image_url: str) -> str: