From 8fda09459cb516ea0e3eda95074d154ffe884af6 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 11 Jan 2020 22:50:18 -0500 Subject: [PATCH] tryelsestmtl3 needs more checks --- uncompyle6/parsers/reducecheck/tryelsestmtl3.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uncompyle6/parsers/reducecheck/tryelsestmtl3.py b/uncompyle6/parsers/reducecheck/tryelsestmtl3.py index acd0b9b8..1a31ebba 100644 --- a/uncompyle6/parsers/reducecheck/tryelsestmtl3.py +++ b/uncompyle6/parsers/reducecheck/tryelsestmtl3.py @@ -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