Skip to content

Improve context guard extraction failure handler #27

@erichulburd

Description

@erichulburd

Currently there are configurable handlers for context guard extraction:

let error_handler: proc_macro2::TokenStream = match config.on_context_extraction_failure {

Rather than manually curate a set of handlers, we should enable the caller to define a callback:

fn handler(e: PyErr) -> PyResult<()>

If handler returns an error, the function is exited; otherwise it carries on.

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