5c2d991
Do not use sys.exc_type (#1014220) The sys.exc_type() function has been removed in Python 3, get the exception type from sys.exc_info() instead.