-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
See #3. There are 19 cases of except Exception and 11 of `raise Exception. Python's philosophy is to raise the most specific error possible so that exception handlers and humans have the most information possible. The way to achieve this is via:
- narrowing all of the
raisestatements - carefully narrow the
exceptstatements, in case any are untested.
In addition, a lot of code uses the antipattern:
try:
do something
except Exception:
raisewhich does the same thing as
do somethingOut of scope for this issue but also germane is the use of internal status-passing with integer codes, rather than raising an exception.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Done