mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 22:39:18 -04:00
Exit with an error code on failure
This commit is contained in:
1 parent
3698f2e4fb
commit
130c82ae4f
1 file changed
+1
@@ -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