First Check
Commit to Help
Example Code
>>> try:
... raise TypeError('bad type')
... except Exception as e:
... e.add_note('Add some information')
... raise
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
TypeError: bad type
Add some information
>>>
Description
The note does not appear when pretty_exceptions_enable=True
PEP 678 – Enriching Exceptions with Notes
Wanted Solution
I would like the note to appear when pretty exceptions are enabled.
Wanted Code
try:
raise TypeError('bad type')
except Exception as e:
e.add_note('Add some information')
raise
Alternatives
No response
Operating System
Linux, Windows
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.11.0
Additional Context
No response
First Check
Commit to Help
Example Code
Description
The note does not appear when
pretty_exceptions_enable=TruePEP 678 – Enriching Exceptions with Notes
Wanted Solution
I would like the note to appear when pretty exceptions are enabled.
Wanted Code
Alternatives
No response
Operating System
Linux, Windows
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.11.0
Additional Context
No response