Skip to content

Commit

Permalink
Enrich comment
Browse files Browse the repository at this point in the history
  • Loading branch information
liucheng-ms committed May 14, 2024
1 parent 7751d99 commit e20a5d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/promptflow-tracing/promptflow/tracing/_trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ def start_as_current_span(
yield span

except (KeyboardInterrupt, asyncio.CancelledError) as ex:
# The context manager above does not handle KeyboardInterrupt and asyncio.CancelledError exceptions.
# Therefore, we need to explicitly handle these exceptions here to ensure proper span exception handling.
handle_span_exception(span, ex)
raise

Expand Down

0 comments on commit e20a5d0

Please sign in to comment.