summaryrefslogtreecommitdiff
path: root/astroid/rebuilder.py
diff options
context:
space:
mode:
authorTomas Gavenciak <gavento@ucw.cz>2018-12-11 16:56:00 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2018-12-11 17:45:29 +0100
commit53350eef90acdf274b8129cdfb742d5bf3b01081 (patch)
tree18ac2fd744570c5d6baa8bf02e6c8239738d7f0a /astroid/rebuilder.py
parentc88b7d5fa934e25ae426d8b918d6eb8de414682d (diff)
downloadastroid-git-53350eef90acdf274b8129cdfb742d5bf3b01081.tar.gz
Remove else after return/raise
Diffstat (limited to 'astroid/rebuilder.py')
-rw-r--r--astroid/rebuilder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/rebuilder.py b/astroid/rebuilder.py
index 4a2d52ab..1b313ee2 100644
--- a/astroid/rebuilder.py
+++ b/astroid/rebuilder.py
@@ -982,7 +982,7 @@ class TreeRebuilder3(TreeRebuilder):
body = [self.visit(child, newnode) for child in node.body]
newnode.postinit(body, [self.visit(n, newnode) for n in node.finalbody])
return newnode
- elif node.handlers:
+ if node.handlers:
return self.visit_tryexcept(node, parent)
return None