diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-14 20:01:52 +0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2017-04-19 20:14:23 +0200 |
commit | e57ed0cd5ba92220e09fe80ab04cce0b3cccfaeb (patch) | |
tree | 68958aee61db4d8906d8b97a3603929d55a24fb6 /src/leap/bitmask/cli/vpn.py | |
parent | 9c1eec5551f13306d1745bbb77502c5eba9955a1 (diff) |
[bug] improve exception catching in execution loop
Diffstat (limited to 'src/leap/bitmask/cli/vpn.py')
-rw-r--r-- | src/leap/bitmask/cli/vpn.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/bitmask/cli/vpn.py b/src/leap/bitmask/cli/vpn.py index 60c57aa..0c5edde 100644 --- a/src/leap/bitmask/cli/vpn.py +++ b/src/leap/bitmask/cli/vpn.py @@ -62,7 +62,10 @@ SUBCOMMANDS: try: _, provider = uid.split('@') except ValueError: - raise ValueError("A provider is needed to start the VPN") + error = ValueError() + error.strerror = "A provider is needed to start the VPN" + error.expected = True + raise error self.data += ['start', provider] |