mirror of
https://github.com/meshtastic/python.git
synced 2026-02-25 02:58:00 -05:00
Merge pull request #455 from bmidgley/brad/error-exit
Exit with an error code on failure
This commit is contained in:
@@ -779,6 +779,7 @@ def onConnected(interface):
|
||||
except Exception as ex:
|
||||
print(f"Aborting due to: {ex}")
|
||||
interface.close() # close the connection now, so that our app exits
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def printConfig(config):
|
||||
|
||||
Reference in New Issue
Block a user