more error catching
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m16s
				
			
		
			
				
	
				Run linting on the backend code / Build (pull_request) Failing after 1m1s
				
			
		
			
				
	
				Run testing on the backend code / Build (pull_request) Failing after 1m44s
				
			
		
			
				
	
				Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 16s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m16s
				
			Run linting on the backend code / Build (pull_request) Failing after 1m1s
				
			Run testing on the backend code / Build (pull_request) Failing after 1m44s
				
			Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 16s
				
			This commit is contained in:
		| @@ -134,5 +134,10 @@ def get_landmark(landmark_uuid: str) -> Landmark: | |||||||
|         landmark = cache_client.get(f"landmark_{landmark_uuid}") |         landmark = cache_client.get(f"landmark_{landmark_uuid}") | ||||||
|         return landmark |         return landmark | ||||||
|     except KeyError as exc: |     except KeyError as exc: | ||||||
|         raise HTTPException(status_code=404, |         raise HTTPException(status_code=404, detail="Landmark not found") from exc | ||||||
|                             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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user