Skip to content

FysomError raised from FysomGlobal lacks sufficient context #45

@frank-pet

Description

@frank-pet

FysomErrors raised from FysomGlobal contain the same information as those raised from Fysom. FysomError instances need to include an attribute ('obj' ?) that contains the object instance of the FysomMixin from which the exception is raised. Custom handlers (try..except FysomError as err:) can then format more helpful debugging information.

This should be a straightforward fix by adding an instance= kwarg to the FysomError constructor. And, there are only a very few places in FysomGlobal where the error is raised.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions