summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2018-05-16 11:38:22 -0700
committerAshley Whetter <ashley@awhetter.co.uk>2018-05-16 11:38:22 -0700
commita5ca4c893ff30de1cd1675554dee419d917f0e62 (patch)
tree6703c2b8a5715796b69bd7c6876d0ec8ec7fc521
parent235c6e5b9bcac6b07944c3d88c9e626aeb99fdd0 (diff)
downloadpylint-git-pylint-1.9.1.tar.gz
Refixed old-raise-syntax not looking for tracebackpylint-1.9.1
-rw-r--r--pylint/checkers/python3.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py
index 8da569b0f..1e988f63b 100644
--- a/pylint/checkers/python3.py
+++ b/pylint/checkers/python3.py
@@ -919,8 +919,7 @@ class Python3Checker(checkers.BaseChecker):
"""
if six.PY2:
if (node.exc is not None and
- node.inst is not None and
- node.tback is None):
+ node.inst is not None):
self.add_message('old-raise-syntax', node=node)
# Ignore empty raise.