mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-21 05:49:37 +02:00
Remove logging for error handling in reverse_geocode function
This commit is contained in:
parent
03c76adc6d
commit
ec2b285d50
1 changed files with 1 additions and 6 deletions
|
@ -84,17 +84,12 @@ def reverse_geocode(lat, lon, user):
|
|||
return extractIsoCode(user, data)
|
||||
|
||||
except requests.exceptions.ConnectionError as e:
|
||||
log_error(f"ConnectionError in reverse_geocode: {e}")
|
||||
return {"error": "An internal error occurred while processing the request"}
|
||||
except requests.exceptions.Timeout as e:
|
||||
log_error(f"Timeout in reverse_geocode: {e}")
|
||||
return {"error": "An internal error occurred while processing the request"}
|
||||
except requests.exceptions.HTTPError as e:
|
||||
log_error(f"HTTPError in reverse_geocode: {e}")
|
||||
return {"error": "An internal error occurred while processing the request"}
|
||||
except requests.exceptions.JSONDecodeError as e:
|
||||
log_error(f"JSONDecodeError in reverse_geocode: {e}")
|
||||
return {"error": "An internal error occurred while processing the request"}
|
||||
except Exception as e:
|
||||
log_error(f"Unexpected error in reverse_geocode: {e}")
|
||||
return {"error": "An internal error occurred while processing the request"}
|
||||
return {"error": "An internal error occurred while processing the request"}
|
Loading…
Add table
Add a link
Reference in a new issue