From 20e9b6581038b21b13e6db6349a881027526ec3b Mon Sep 17 00:00:00 2001 From: Claudiu Popa Date: Fri, 4 Sep 2015 01:53:07 +0300 Subject: Add a new error, 'misplaced-bare-raise'. The error is used when a bare raise is not used inside a try suite. This can generate a RuntimeError in Python, if there are no active exceptions to be reraised. While it works in Python 2 due to the fact that the exception leaks outside of the except block, it's nevertheless a behaviour that an user shouldn't depend upon, since it's not obvious to the reader of the code what exception will be raised and it will not be compatible with Python 3 anyhow. Closes issue #633. --- ChangeLog | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 8fcb2ea..8678b84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -264,7 +264,17 @@ ChangeLog for Pylint * --comment flag is obsoleted and it will be removed in Pylint 1.6. * --profile flag is obsoleted and it will be removed in Pylint 1.6. - + + * Add a new error, 'misplaced-bare-raise'. + + The error is used when a bare raise is not used inside a try suite. + This can generate a RuntimeError in Python, if there are no active exceptions + to be reraised. While it works in Python 2 due to the fact that the exception + leaks outside of the except block, it's nevertheless a behaviour that + an user shouldn't depend upon, since it's not obvious to the reader of the code + what exception will be raised and it will not be compatible with Python 3 anyhow. + Closes issue #633. + 2015-03-14 -- 1.4.3 -- cgit v1.2.1