summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-08-18 15:09:35 +0300
committercpopa <devnull@localhost>2014-08-18 15:09:35 +0300
commit67752720f07f1d62dfc8ed38e3d2e2a96ebccfa3 (patch)
tree40cd74f23210a05da0d1eb670a5b82fde51abbcc
parentce4ba79604eef9316106e29adf4ca425450d7263 (diff)
downloadpylint-67752720f07f1d62dfc8ed38e3d2e2a96ebccfa3.tar.gz
Backed out changeset ff26eefc7e0c
-rw-r--r--checkers/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index 3dbf81f..8c9bea9 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -295,7 +295,6 @@ class ExceptionsChecker(BaseChecker):
# Don't emit the warning if the infered stmt
# is None, but the exception handler is something else,
# maybe it was redefined.
- print("not a class", exc, type(exc), exc.as_string())
if (isinstance(exc, astroid.Const) and
exc.value is None):
if ((isinstance(handler.type, astroid.Const) and
@@ -337,6 +336,7 @@ class ExceptionsChecker(BaseChecker):
fully_infered = all(inferit is not YES
for inferit in bases)
if fully_infered:
+ print("Infered", fully_infered, bases, exc)
self.add_message('catching-non-exception',
node=handler.type,
args=(exc.name, ))