Skip to content

raise ... from ... not supportet by exception-formatter? #14

@jensens

Description

@jensens

BUG or UNSUPPORTED PYTHON FEATURE

What I did:

In my code used the raise from construct see also https://www.pythontutorial.net/python-oop/python-raise-from/:

try: 
   # some code
   ...
except SomeExeception as exc:
   raise MyException("my message") from exc

What I expect to happen:

an output like in core Python:

Traceback (most recent call last):
    ...
SomeExeception: some message

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
   ...
ValueError: my message

What actually happened:

I get only

Traceback (most recent call last):
   ...
ValueError: my message

What version of Python and Zope/Addons I am using:

Python 3.10 with Zope 5 and Plone 6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions