From 4e59f628e338fede9bbacbd60bd138cd3ddceadc Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Mon, 12 May 2025 18:05:38 -0400 Subject: [PATCH] Update main.py --- app/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2f65e69..3408527 100644 --- a/app/main.py +++ b/app/main.py @@ -97,8 +97,10 @@ async def dropoutSeries(): global cached_data if cached_data is None: await dropoutUpdate() + try: return JSONResponse(content=cached_data) - return JSONResponse(content={"error": "File not found"}, status_code=404) + except: + return JSONResponse(content={"error": "File not found"}, status_code=404) async def get_show_data(show: str): global cached_data