Cite sources ;)

This commit is contained in:
deajan 2024-10-12 20:12:32 +02:00
parent f9275d7caa
commit 4a51513469

View file

@ -45,6 +45,10 @@ if not "_DEBUG" in globals():
def exception_to_string(exc):
"""
Transform a catched exception to a string
https://stackoverflow.com/a/37135014/2635443
"""
stack = traceback.extract_stack()[:-3] + traceback.extract_tb(
exc.__traceback__
) # add limit=??