OwlCyberDefense / setools

setools has moved to https://github.com/SELinuxProject/setools
Other
91 stars 34 forks source link

Implement exception chaining #106

Closed pebenito closed 7 years ago

pebenito commented 8 years ago

Change exceptions to use raise from where relevant:

try:
    some.operation()
except Exception as e:
    raise IndexError from e

Requires Python 2.7 support to be dropped.