fix: handle missing anime directory gracefully on startup
This commit is contained in:
@@ -286,6 +286,11 @@ async def lifespan(_application: FastAPI):
|
||||
except (OSError, RuntimeError, ValueError) as e:
|
||||
logger.warning("Failed to initialize services: %s", e)
|
||||
# Continue startup - services can be initialized later
|
||||
except Exception as e: # includes HTTPException from get_anime_service
|
||||
logger.warning(
|
||||
"Failed to initialize services (anime directory may not exist): %s", e
|
||||
)
|
||||
# Continue startup - services can be configured/initialized later
|
||||
|
||||
logger.info("FastAPI application started successfully")
|
||||
logger.info("Server running on http://127.0.0.1:8000")
|
||||
|
||||
Reference in New Issue
Block a user