Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ddtrace/contrib/internal/openai/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def patched_endpoint(openai, pin, func, instance, args, kwargs):
resp, err = None, None
try:
resp = func(*args, **kwargs)
except Exception as e:
except BaseException as e:
err = e
raise
finally:
Expand Down Expand Up @@ -296,7 +296,7 @@ async def patched_endpoint(openai, pin, func, instance, args, kwargs):
try:
resp = await func(*args, **kwargs)
return resp
except Exception as e:
except BaseException as e:
err = e
raise
finally:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
openai: Resolves an issue in the OpenAI integration where ``asyncio.CancelledError`` was not caught or re-raised.
Loading