diff --git a/backend/routes/admin.py b/backend/routes/admin.py index be0c8ed..a8fa045 100644 --- a/backend/routes/admin.py +++ b/backend/routes/admin.py @@ -799,7 +799,10 @@ async def get_analytics(user=Depends(require_mod)): site_id = os.getenv("UMAMI_SITE_ID", "") if not url or not site_id: raise HTTPException(503, "Umami nicht konfiguriert.") - token = await _umami_auth() + try: + token = await _umami_auth() + except Exception as e: + raise HTTPException(503, f"Umami-Login fehlgeschlagen: Bitte UMAMI_USERNAME und UMAMI_PASSWORD in .env prüfen. ({e})") headers = {"Authorization": f"Bearer {token}"} now = datetime.now(_TZ)