Use sys.exit instead of exit and change -1 to 1 since -1 is not a proper
exit code
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
tuna-cmd.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tuna-cmd.py b/tuna-cmd.py
index 1e7bf61021d3..46ce86efa036 100755
--- a/tuna-cmd.py
+++ b/tuna-cmd.py
@@ -468,9 +468,9 @@ def apply_config(filename):
else:
if not os.path.exists(config.config['root']+filename):
print(filename + _(" not found!"))
- exit(-1)
+ sys.exit(1)
if config.loadTuna(filename):
- exit(1)
+ sys.exit(1)
ctrl = 0
values = {}
values['toapply'] = {}
--
2.31.1