Skip to content

catch exceptions outside of toma and remove toma from the traceback #1

@BlackHC

Description

@BlackHC

idea would be to add a helper to stacktrace.py that takes removes all frames from the caller up to the provided callback (and if the callback is not there, it won't do anything). This can probably written as a contextmanager.

see also https://github.com/pallets/jinja/blob/5b498453b5898257b2287f14ef6c363799f1405a/jinja2/debug.py

and BaseException.with_traceback

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions