Menu

#10 Resolve "broad-except" issues

Develop
open
nobody
pylint (4)
2017-12-30
2017-12-30
No

pylint has found found two instances of Catching too general exception issues:

W: 96,11: Catching too general exception Exception (broad-except)
W:108,11: Catching too general exception Exception (broad-except)

Catching too general exception %s Used when an except catches a too general exception, possibly burying unrelated errors

In both of these, they are 'class' exceptions, from the 'nntplib' class it.looks like; Will need to check that library especially in light of the fact that I will be porting the script to python v3 (which will be version 1.x). May need more investigation if they are still present after the rewrite for python v3.

Discussion


Log in to post a comment.