Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ghunt/helpers/gmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ghunt/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down