From 3abcae19fefd11bbfba6cbf696b342ea72da6992 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Fri, 26 Jun 2026 12:06:38 +0800 Subject: major changes to /about/, event reflections, project reflections, video reflections --- main.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'main.py') diff --git a/main.py b/main.py index 459f9a1..0a7eb2b 100644 --- a/main.py +++ b/main.py @@ -36,10 +36,13 @@ class TurnstileTokenData(BaseModel): @app.exception_handler(fastapi.HTTPException) def exception_handling(request: fastapi.Request, exception: fastapi.HTTPException): + print("EXCEPTION:", exception) if exception.status_code == 404: return fastapi.responses.FileResponse("./www/404.html", status_code=404) elif exception.status_code == 209: return fastapi.responses.FileResponse("./www/209.html", status_code=209) + elif exception.status_code == 500: + return fastapi.responses.FileResponse("./www/500.html", status_code=500) @app.post("/api/email/") -- cgit v1.2.3