suppress "too broad exception clause" warning

已回答

Don't see it in the settings/editor/inspections and have seen something online about putting “# noinspection PyBroadException” in the code file.  I have also turned off pep-8 inspections.

I understand what it's warning me but I know what I want to do with these exceptions, so what is the best way to suppress it?  It's making it hard for me to see actual errors when looking at the scroll bar.

0

Check on the latest 2025.1.1.1 - disabling Unclear exception clauses works for me

 

Alternatively just add the # noinspection PyBroadException on top of of the function that throws the warning

0

That did it.  Thanks, it clears up a number of errors on the right hand side making it easier to focus on what are (in my workflow) actual errors.

0

请先登录再写评论。