Skip to content

Decompile nested try except format code fail #102

@waaaagit

Description

@waaaagit

Thanks for your work.

These two cases below can't be decompiled correctly

def test(a,b,c):
    try:
        d=a/b
        return 1
    except:
        try:
            e=b/a
        except:
            f = b/c
            return 2
    return 3
def test(a,b,c):
    try:
        d=a/b
        return 1
    except:
        try:
            e=b/a
            return 2
        except:
            f = b/c
    return 3

These two cases maybe more common scenario

I add a comment at #97, but I can't reopen that issue, so I new this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions