Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion root/app/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ async def get_status():
async def health():
try:
content = await get_status()
return JSONResponse(content=content)
status_code = 200 if content == "Success" else 500
return JSONResponse(content=content, status_code=status_code)
except Exception:
print(traceback.format_exc())
raise HTTPException(status_code=404, detail="Not found")
Expand Down