diff --git a/backend/routes/generate_code.py b/backend/routes/generate_code.py index 65a33a7..c71ceff 100644 --- a/backend/routes/generate_code.py +++ b/backend/routes/generate_code.py @@ -396,7 +396,9 @@ async def stream_code(websocket: WebSocket): completions[index] = "" print("Generation failed for variant", index) try: - raise Exception("One of the generations failed") + raise Exception( + "One of the generations failed" + ) from completion except: sentry_sdk.capture_exception()