Merge pull request #354 from Deixx/casctl-stop-exit

Return exit codes from casctl stop
This commit is contained in:
Robert Baldyga 2020-03-17 17:38:56 +01:00 committed by GitHub
commit 5d99f0c092
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,9 @@
#
import argparse
import sys
import re
import sys
import opencas
if sys.version_info < (3, 5):
@ -131,6 +132,9 @@ def stop(flush):
opencas.stop(flush)
except Exception as e:
eprint(e)
exit(1)
exit(0)
# Command line arguments parsing