We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

sys.exc_type

exc_type

Deprecated since release 1.5. Use sys.exc_info instead.

Since sys.exc_type, sys.exc_value and sys.exc_traceback are global variables, they are not specific to the current thread, so their use is not safe in a multi-threaded program.

When no exception is being handled, sys.exc_type is set to None and the other two are undefined.