agronholm / pythonfutures

Backport of the concurrent.futures package to Python 2.6 and 2.7
Other
232 stars 51 forks source link

Add support for old-style exception objects. #58

Closed rhansen closed 7 years ago

rhansen commented 7 years ago

Python 2 permits raising old-style objects (objects that aren't instances of the object class). Because these objects are not instances of BaseException, clauses like except BaseException: don't catch them.

Add support for handling old-style exception objects by:

rhansen commented 7 years ago

This is sort-of blocking python/typeshed#946.

agronholm commented 7 years ago

Thanks!