(An Unofficial) Python Reference Wiki

"clearly marked experimental"

sys.exc_type

exc_type

Deprecated since release 1.5. Use sys.exc_info instead.

Since sys.exctype, sys.excvalue 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, exc_type is set to None and the other two are undefined.