agronholm / agronholm/exceptiongroup

Custom traceback is being overridden when importing exceptiongroup

Open
#96 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
49
Forks
23
PR merge metrics
No merged PRs in 30d

Description

I took as a reference the source code of exceptiongroup in order to make a custom exception of my own with a custom traceback .

It worked as expected, the thing is, when I import exceptiongroup, it overrides the traceback exception from the exceptiongroup.

Is there a way to isolate my implementation?

I assume it relates to this code:

https://github.com/agronholm/exceptiongroup/blob/4e2df2190d3c61a2e7940d6908b32658dfadab3f/src/exceptiongroup/_formatting.py#L343-L360

What can I do about it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.