Post #2971422
2026-05-14 01:41 UTC
@encthenet@flyovercountry.social I think you want https://docs.python.org/3/library/traceback.html#traceback.print_stack not print_exc
Replies (1)
-
@encthenet@flyovercountry.social 2026-05-14 06:45
@glyph@mastodon.social Nope, I want print_exc. Otherwise I'd have to do except Exception as e: And use orint_exceptilon. print_stack would only help me find where I was being called from, not what the error was. Still useful but not what I was going for.