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
commit aa632d4e49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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