[Python-projects] PyLint: False positive "Except doesn't do anything"
Sylvain Thénault
sylvain.thenault at logilab.fr
Tue Dec 5 08:28:14 CET 2006
On Thursday 23 November à 17: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".
ticket #3205
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list