1
0
forked from VimPlug/jedi

fix except: usage in analysis

This commit is contained in:
Dave Halter
2014-06-23 12:13:10 +02:00
parent 9348d4bb6c
commit c1181a0459
2 changed files with 13 additions and 0 deletions
+4
View File
@@ -90,6 +90,10 @@ def _check_for_exception_catch(evaluator, jedi_obj, exception, payload=None):
def check_try_for_except(obj):
while obj.next is not None:
obj = obj.next
if not obj.inputs:
# No import implies a `except:` catch, which catches
# everything.
return True
for i in obj.inputs:
except_classes = evaluator.eval_statement(i)
for cls in except_classes: