Skip to content

Commit

Permalink
Fix not raising filenotfounderror in overlay endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thorbjoernl committed Jan 22, 2025
1 parent 519301d commit c7f4c5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/aerovaldb/jsondb/jsonfiledb.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,10 @@ async def get_map_overlay(
file_path += ext
if os.path.exists(file_path):
break
else:
raise FileNotFoundError(
f"Overlay for {project}/{experiment}/{source}/{variable}/{date} does not exist."
)

logger.debug(f"Fetching image with path '{file_path}'")

Expand Down

0 comments on commit c7f4c5b

Please sign in to comment.