git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nicer output of sfi (catches SystemExit)
[sfa.git]
/
sfa
/
client
/
sfi.py
diff --git
a/sfa/client/sfi.py
b/sfa/client/sfi.py
index
3e632b4
..
21f0f8f
100644
(file)
--- a/
sfa/client/sfi.py
+++ b/
sfa/client/sfi.py
@@
-505,11
+505,13
@@
use this if you mean an authority instead""")
try:
self.dispatch(command, command_options, command_args)
+ except SystemExit:
+ return 1
except:
self.logger.log_exc ("sfi command %s failed"%command)
- sys.exit(1)
+ return 1
- return
+ return
0
####################
def read_config(self):