Created
April 12, 2021 11:28
-
-
Save absent1706/8a2a198a600f64435ef0064ad4a6a091 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def format_exception_as_python_does(e: BaseException): | |
# taken from https://stackoverflow.com/a/35498685 | |
return traceback.format_exception(type(e), e, e.__traceback__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment