Skip to content

Error handling makes it impossible to use as library #703

Open
@broglep

Description

@broglep

The current approach of calling sys.exit() when a failure happens makes it impossible to use the library as part of an other project (e.g. home assistant integration)

Workaround of monkey patching that method does also not fully work as then the code flow continues and does not abort.

Example:
https://github.com/meshtastic/python/blob/master/meshtastic/mesh_interface.py#L444

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