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

code: add ExceptionInfo.from_exception #10901

Merged
merged 2 commits into from
Apr 13, 2023

Commits on Apr 12, 2023

  1. code: add ExceptionInfo.from_exception

    The old-style `sys.exc_info()` triplet is redundant nowadays with
    `(type(exc), exc, exc.__traceback__)`, and is beginning to get
    soft-deprecated in Python 3.12.
    
    Add a nicer API to ExceptionInfo which takes just the exc instead of the
    triplet. There are already a few internal uses which benefit.
    bluetech committed Apr 12, 2023
    Configuration menu
    Copy the full SHA
    424c3ee View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2023

  1. Configuration menu
    Copy the full SHA
    bc1fc3f View commit details
    Browse the repository at this point in the history