mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2025-03-15 17:50:21 +08:00
log error when exception
This commit is contained in:
parent
a7e0ad70a9
commit
fc44023e97
1
main.py
1
main.py
@ -59,6 +59,7 @@ async def read_item(request: LinkRequest):
|
||||
detail="Timed out bypassing Cloudflare", status_code=408
|
||||
) from e
|
||||
except Exception as e:
|
||||
logger.error(e)
|
||||
browser.stop()
|
||||
raise HTTPException(detail="Couldn't bypass", status_code=500) from e
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user