summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli/vpn.py
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2017-04-18 21:03:36 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-04-19 20:14:27 +0200
commit5e6de17902f73ea0ac48eeda77216a302bd0872f (patch)
tree861c4fc084360590f0ca9a4151d8964be63b5bb5 /src/leap/bitmask/cli/vpn.py
parent5c38c9d9ee99a3c8ebe9cd28108514f706fb4780 (diff)
[refactor] use str repr of exception
Diffstat (limited to 'src/leap/bitmask/cli/vpn.py')
-rw-r--r--src/leap/bitmask/cli/vpn.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/leap/bitmask/cli/vpn.py b/src/leap/bitmask/cli/vpn.py
index 0c5eddec..1c7ad3b4 100644
--- a/src/leap/bitmask/cli/vpn.py
+++ b/src/leap/bitmask/cli/vpn.py
@@ -62,8 +62,7 @@ SUBCOMMANDS:
try:
_, provider = uid.split('@')
except ValueError:
- error = ValueError()
- error.strerror = "A provider is needed to start the VPN"
+ error = ValueError("A provider is needed to start the VPN")
error.expected = True
raise error