From 130c82ae4f73cb9fc52701fffbb8cc9f57474128 Mon Sep 17 00:00:00 2001 From: Brad Midgley Date: Thu, 10 Aug 2023 22:18:08 -0600 Subject: [PATCH] Exit with an error code on failure --- meshtastic/__main__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/meshtastic/__main__.py b/meshtastic/__main__.py index a18b408..d7a282f 100644 --- a/meshtastic/__main__.py +++ b/meshtastic/__main__.py @@ -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):