You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
tryelsestmtl3 needs more checks
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user