Skip to content

Commit fcd7297

Browse files
Fix: exception order
1 parent db60f81 commit fcd7297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/utils/telemetry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ async def async_wrapper(*args, **kwargs) -> Any:
165165

166166
# asyncio.CancelledError extends from BaseException
167167
except asyncio.CancelledError as ce:
168-
exception = None
168+
exception = ce
169169
logger.debug(f'CancelledError in span {actual_span_name}')
170170
span.record_exception(ce)
171171
raise

0 commit comments

Comments
 (0)