throw 1 as an exit retcod when things go wrong
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 10:02:25 +0000 (12:02 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Wed, 30 Apr 2014 10:02:53 +0000 (12:02 +0200)
sfa/client/sfaadmin.py

index 48171dc..a1b9476 100755 (executable)
@@ -508,8 +508,9 @@ class SfaAdmin:
             #traceback.print_exc()
             print command.__doc__
             parser.print_help()
+            sys.exit(1)
             #raise
         except Exception:
             print "Command failed, please check log for more info"
             raise
-
+            sys.exit(1)