Update main.py
This commit is contained in:
parent
e7678aaf0b
commit
a7a0eb915c
@ -126,8 +126,8 @@ async def webpage(request: Request):
|
||||
global cached_data
|
||||
if cached_data is None:
|
||||
await dropoutUpdate()
|
||||
html = await shows()
|
||||
try:
|
||||
html = shows()
|
||||
return templates.TemplateResponse("dropout.html", {"request": request, "shows": html})
|
||||
except Exception as e:
|
||||
return JSONResponse(status_code=500, content={"status": "error", "message": str(e)})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user