summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-08-18 15:06:38 +0300
committercpopa <devnull@localhost>2014-08-18 15:06:38 +0300
commitce4ba79604eef9316106e29adf4ca425450d7263 (patch)
treeb2819dffdb429b1b912d50a61c27b9ab46475d17
parent61b31662f6119e9031557f42837b8288b293541c (diff)
downloadpylint-ce4ba79604eef9316106e29adf4ca425450d7263.tar.gz
Debug.
-rw-r--r--checkers/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkers/exceptions.py b/checkers/exceptions.py
index 8c9bea9..3dbf81f 100644
--- a/checkers/exceptions.py
+++ b/checkers/exceptions.py
@@ -295,6 +295,7 @@ 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
@@ -336,7 +337,6 @@ 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, ))