summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/vpn.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-06-02 12:33:26 +0200
committerRuben Pollan <meskio@sindominio.net>2017-06-05 20:56:28 +0200
commit4d7380dd1e868aceeebc64ed5fc1d24369999fa9 (patch)
tree8cb479b025378ec4b2b76a078a562c8aad7dcf91 /src/leap/bitmask/cli/vpn.py
parentbc7dd3e575fcd5ed6ee6aa352c97741f761130aa (diff)
[feat] On bitmaskclt vpn start use the last vpn if no provider is provided
- Resolves: #8835
Diffstat (limited to 'src/leap/bitmask/cli/vpn.py')
-rw-r--r--src/leap/bitmask/cli/vpn.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/cli/vpn.py b/src/leap/bitmask/cli/vpn.py
index 1c7ad3b4..219cac17 100644
--- a/src/leap/bitmask/cli/vpn.py
+++ b/src/leap/bitmask/cli/vpn.py
@@ -54,7 +54,7 @@ SUBCOMMANDS:
help='provider to start the VPN')
subargs = parser.parse_args(raw_args)
- provider = None
+ provider = ""
if subargs.provider:
provider = subargs.provider
else:
@@ -62,9 +62,7 @@ SUBCOMMANDS:
try:
_, provider = uid.split('@')
except ValueError:
- error = ValueError("A provider is needed to start the VPN")
- error.expected = True
- raise error
+ pass
self.data += ['start', provider]