tryelsestmtl3 needs more checks

This commit is contained in:
rocky
2020-01-11 22:50:18 -05:00
parent 021c5cad2a
commit 8fda09459c

View File

@@ -29,6 +29,8 @@ def tryelsestmtl3(self, lhs, n, rule, ast, tokens, first, last):
return False
leading_jump = except_handler[0]
if not hasattr(leading_jump, "offset"):
return False
# We really don't care that this is a jump per-se. But
# we could also check that this jumps to the end of the except if