1
0
Fork 0
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:
Sean Morley 2025-05-23 23:17:47 -04:00
parent 03c76adc6d
commit ec2b285d50

View file

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