Skip to content

proprosal: safe panel invocations #352

@jvanasco

Description

@jvanasco

Under the current toolbar design, if an error occurs in a debug panel or panel rendering, a generic wsgi error is generated.

I propose wrapping the invocations of various panel API methods in a try/except block. If an error is raised it is either tracked on the toolbar or the panel via a new attribute .is_panel_error or similar. it is logged at an log.ERROR level too. the html for broken panels is replaced with a 'error in the panel' message.

thoughts? this would require adding a new panel attribute or some code to track broken panels, so I wanted to discuss before trying a PR.

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