#5 Over-broad ‘try […] except’ blocks unintentionally catch too many exceptions
Opened by bignose. Modified

Several places in the code have ‘try’ blocks that are too broad: they include statements or expressions from which exceptions should not be caught.

Similarly, several ‘except’ clauses are too broad: they do not specify narrow enough classes of exception, and so will unintentionally catch exceptions that are not the intended meaning of the clause.

Remove all unintended expressions and statements from ‘try’ blocks.

Narrow all ‘except’ clauses to catch only those classes with the intended meaning.


Metadata