Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(framework) Catch BaseException in *EventLogInterceptor #5108

Merged
merged 5 commits into from
Mar 14, 2025

Conversation

chongshenng
Copy link
Contributor

@chongshenng chongshenng commented Mar 14, 2025

The current implementation of *EventLogInterceptor will return an event with status = "failed" if it catches an Exception. But, if a BaseException occurs, it will erroneously flag the event as status = "completed". To avoid this, this PR changes the try-except implementation to catch a BaseException instead.

@chongshenng chongshenng marked this pull request as ready for review March 14, 2025 11:28
@chongshenng chongshenng requested a review from panh99 March 14, 2025 11:28
Copy link
Contributor

@panh99 panh99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@danieljanes danieljanes enabled auto-merge (squash) March 14, 2025 14:18
@danieljanes danieljanes merged commit 87bf0a1 into main Mar 14, 2025
58 checks passed
@danieljanes danieljanes deleted the fix/catch-base-exception-event-log branch March 14, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants