traceback — Print or retrieve a stack traceback — Python 3.14.2 documentation#traceback.format_exc
traceback.format_exc(limit=None, chain=True)This is like
print_exc(limit)but returns a string instead of printing to a file.
Printed 2026-06-28.
(echo:: @ ᯤ)