Adding features to find public toilets and shopping streets #41

Merged
kscheidecker merged 21 commits from feature/backend/toilets-and-shopping-streets into main 2024-12-14 15:57:09 +00:00
Showing only changes of commit 449e2b2ce4 - Show all commits

View File

@ -134,5 +134,10 @@ def get_landmark(landmark_uuid: str) -> Landmark:
landmark = cache_client.get(f"landmark_{landmark_uuid}")
return landmark
except KeyError as exc:
raise HTTPException(status_code=404,
detail="Landmark not found") from exc
raise HTTPException(status_code=404, detail="Landmark not found") from exc
except ConnectionError as exc:
raise HTTPException(status_code=503, detail="Service unavailable") from exc
except TimeoutError as exc:
raise HTTPException(status_code=504, detail="Request timed out") from exc
except Exception as exc:
raise HTTPException(status_code=500, detail="An unexpected error occurred") from exc