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

T264586: Add rendering for explicit exception causes #7

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

Wiseqube
Copy link

@Wiseqube Wiseqube commented Dec 9, 2024

The current implementation of zExceptions.ExceptionFormatter does not allow rendering of full stacks for exceptions with explicit cause exceptions (raise Exception from ..) (see zopefoundation/zExceptions#14)
This PR implements a workaround by going up the cause chain of the exception and using the formatter for each seperate exception. The result may look something like this:

grafik

Copy link
Collaborator

@viktordick viktordick left a comment

Choose a reason for hiding this comment

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

LGTM

@Wiseqube Wiseqube merged commit dffba5c into master Dec 9, 2024
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.

2 participants