diff --git a/main.py b/main.py index 3c242740..5de22da4 100644 --- a/main.py +++ b/main.py @@ -95,8 +95,9 @@ async def load_config(): app.include_router(admin_api) +@app.exception_handler(404) @app.get("/") -async def index(): +async def index(request=None, exc=None): return HTMLResponse( content=open( BASE_DIR / f"{settings.themesSelect}/index.html", "r", encoding="utf-8"