[Python-projects] PyLint: False positive "Except doesn't do anything"
Mark Flacy
mflacy1 at tx.rr.com
Thu Nov 23 18:01:03 CET 2006
On 2006.11.23 10:06, Maarten ter Huurne wrote:
> Hi,
>
> I was looking for a workaround for the problem reported in my previous
> mail when I tried this:
> ===
> try:
> pass
> except:
> pass # pylint: disable-msg=W0702
> print 'failed to do nothing'
> ===
> PyLint reports "W0704: 3: Except doesn't do anything".
>
> So it seems that if the first statement after "except" is "pass", that
> warning is issued, even if other statements follow the "pass".
The other statements won't get executed.
>
> PyLint 0.12.2, astng 0.16.3, common 0.21.0 (thanks for the new release!)
>
> Bye,
> Maarten
>
> _______________________________________________
> Python-Projects mailing list
> Python-Projects at lists.logilab.org
> http://lists.logilab.org/mailman/listinfo/python-projects
More information about the Python-Projects
mailing list