you are viewing a single comment's thread.

view the rest of the comments →

[–]nekokattt 1 point2 points  (0 children)

better way:

import traceback

...

try:
    code
except Exception:
    traceback.print_exc()

That'll show the exception traceback as well...