log error when exception

This commit is contained in:
Patrik Votoček 2024-11-22 02:16:59 +01:00
parent a7e0ad70a9
commit fc44023e97

View File

@ -59,6 +59,7 @@ async def read_item(request: LinkRequest):
detail="Timed out bypassing Cloudflare", status_code=408 detail="Timed out bypassing Cloudflare", status_code=408
) from e ) from e
except Exception as e: except Exception as e:
logger.error(e)
browser.stop() browser.stop()
raise HTTPException(detail="Couldn't bypass", status_code=500) from e raise HTTPException(detail="Couldn't bypass", status_code=500) from e