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.
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