Skip to content

Panic in nested exceptions handling #1041

Closed
@apatrushev

Description

@apatrushev
try:
    {}[1]
except KeyError:
    try:
        raise RuntimeError()
    except RuntimeError:
        pass

expected result

silent and clean process finish

current result

thread 'main' panicked at 'assertion failed: vm.pop_exception().is_some()',
.../.cargo/git/checkouts/rustpython-f8ef4d934ac33cd8/73edde6/vm/src/frame.rs:883:21

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-compatA discrepancy between RustPython and CPython

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions