forked from masteroftime/Python-Plugin-Loader
-
Notifications
You must be signed in to change notification settings - Fork 3
Debugging
jomo edited this page Jul 24, 2014
·
2 revisions
If you want to catch all exceptions (e.g. for debugging), do not use catch Exception
.
Since we're using jython, this will not catch Java exceptions.
To get a more useful traceback, use this:
from traceback import format_exc as trace
try:
#code
except: # everything
print(trace())