capture underlying exception when only one of the generations fails
This commit is contained in:
parent
659b82b214
commit
7b08507b61
@ -396,7 +396,9 @@ async def stream_code(websocket: WebSocket):
|
|||||||
completions[index] = ""
|
completions[index] = ""
|
||||||
print("Generation failed for variant", index)
|
print("Generation failed for variant", index)
|
||||||
try:
|
try:
|
||||||
raise Exception("One of the generations failed")
|
raise Exception(
|
||||||
|
"One of the generations failed"
|
||||||
|
) from completion
|
||||||
except:
|
except:
|
||||||
sentry_sdk.capture_exception()
|
sentry_sdk.capture_exception()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user