summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/dispatcher.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/core/dispatcher.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/core/dispatcher.py')
-rw-r--r--src/leap/bitmask/core/dispatcher.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/bitmask/core/dispatcher.py b/src/leap/bitmask/core/dispatcher.py
index ccb17db..ba000d4 100644
--- a/src/leap/bitmask/core/dispatcher.py
+++ b/src/leap/bitmask/core/dispatcher.py
@@ -202,8 +202,7 @@ class VPNCmd(SubCommand):
try:
provider = parts[2]
except IndexError:
- raise DispatchError(
- 'wrong number of arguments: expected 1, got none')
+ provider = None
d = vpn.start_vpn(provider)
return d