Merge pull request #17 from Vrtak-CZ/log-err

log error when exception
This commit is contained in:
Jakub Orchowski
2024-11-23 11:38:20 +01:00
committed by GitHub
+1
View File
@@ -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