Commit 58cfe754 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

catch more case of projects/.../gencov failure

parent 4469d95d
......@@ -96,9 +96,11 @@ def project_detail(project_id: str):
def project_gencov_view(project_id: str):
try:
return JSONResponse(load_project(project_id=project_id).get_project_gencov())
except ValueError as e:
except ValueError as e: # NaN in values
raise HTTPException(status_code=500, detail=str(e))
except HDF5ExtError as e:
except HDF5ExtError as e: # file corrupted
raise HTTPException(status_code=500, detail=str(e))
except Exception as e: # anything else
raise HTTPException(status_code=500, detail=str(e))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment