Skip to content

Commit

Permalink
fix: return 404 error from witntervar edpoint (#503) (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon authored Feb 12, 2024
1 parent 6b2cb3e commit b7d34af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/app/api/internal/endpoints/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ async def acmg(request: Request):
if backend_resp.is_error:
return Response(status_code=backend_resp.status_code, content=backend_resp.content)

if backend_resp.content == b"":
return Response(status_code=404, content="Variant not found in WinterVar")

try:
backend_json = backend_resp.json()
except json.JSONDecodeError:
Expand Down

0 comments on commit b7d34af

Please sign in to comment.