Fix a wrong branch check, fixes #1128
This commit is contained in:
1 parent
6ebe3f87a3
commit
62a3f99594
2 files changed
+6
-1
No files matched your search
@@ -60,7 +60,8 @@ def reachability_check(context, context_scope, node, origin_scope=None):
|
||||
if not branch_matches and origin_keyword == 'else' \
|
||||
and node_keyword == 'except':
|
||||
return UNREACHABLE
|
||||
break
|
||||
if branch_matches:
|
||||
break
|
||||
|
||||
# Direct parents get resolved, we filter scopes that are separate
|
||||
# branches. This makes sense for autocompletion and static analysis.
|
||||
|
||||
Reference in new issue
Block a user