Vincent Legoll <vincent.leg...@gmail.com> writes:

> Hello,
> 
> pylint reports that we are raising NoneType when we are not,
> see the attached test case

Yes. This also happens (for me) if the condition is given as the more
idiomatic::

    if exc is not None:
        raise exc

I'm not sure how much run-simulation pylint should do to avoid these
kinds of conditions; surely whatever heuristic gets added will be
defeated by one condition or another.

-- 
 \       “If you define cowardice as running away at the first sign of |
  `\   danger, screaming and tripping and begging for mercy, then yes, |
_o__)               Mr. Brave man, I guess I'm a coward.” —Jack Handey |
Ben Finney

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to