capture errors sending to saas backend in sentry

This commit is contained in:
Abi Raja 2024-09-17 17:10:40 +02:00
parent 7b08507b61
commit 1b37c4e063

View File

@ -463,6 +463,7 @@ async def stream_code(websocket: WebSocket):
)
except Exception as e:
print("Error sending to SaaS backend", e)
sentry_sdk.capture_exception(e)
## Image Generation
for index, _ in enumerate(completions):