summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/cli')
-rwxr-xr-xsrc/leap/bitmask/cli/bitmask_cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py
index 839b7f5..d34a776 100755
--- a/src/leap/bitmask/cli/bitmask_cli.py
+++ b/src/leap/bitmask/cli/bitmask_cli.py
@@ -161,9 +161,10 @@ def execute():
try:
yield cli.execute(args)
- if 'start' in sys.argv or 'restart' in sys.argv:
+ cmdline = ' '.join(sys.argv)
+ if 'ctl start' in cmdline or 'ctl restart' in cmdline:
command.default_dict_printer({'start': 'ok'})
- except Exception, e:
+ except Exception as e:
print(Fore.RED + "ERROR: " + Fore.RESET +
"%s" % str(e))
if not hasattr(e, 'expected'):