This commit is contained in:
Christian Mantha
2026-03-02 19:10:52 -05:00
commit 2ca0b9ef7c
28907 changed files with 5233713 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import sys
import traceback
def get_stacktrace(error):
msg = repr(error)
try:
if sys.version_info < (3, 10):
tb = traceback.format_exception(error.__class__, error, error.__traceback__)
else:
tb = traceback.format_exception(error)
return (msg + "".join(tb)).strip()
except Exception:
return msg