diff options
author | kali <kali@leap.se> | 2018-06-12 11:17:56 -0700 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-06-13 20:25:33 +0200 |
commit | 5a68ef22ccc372c36ab9ba09290e6df8722b6043 (patch) | |
tree | 3b04fc57396717d27aacb0b3be0e5cbf42d875e0 /src/leap/bitmask/vpn/launchers | |
parent | 580d45199a126a0cc8f0ba0698f4797e5a58997a (diff) |
[bug] fix constants import error
Diffstat (limited to 'src/leap/bitmask/vpn/launchers')
-rw-r--r-- | src/leap/bitmask/vpn/launchers/darwin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/bitmask/vpn/launchers/darwin.py b/src/leap/bitmask/vpn/launchers/darwin.py index d959b159..3b37e540 100644 --- a/src/leap/bitmask/vpn/launchers/darwin.py +++ b/src/leap/bitmask/vpn/launchers/darwin.py @@ -42,8 +42,8 @@ class HelperCommand(object): self._sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: self._sock.connect(self.SOCKET_ADDR) - except socket.error, msg: - raise RuntimeError('Cannot connect to helper: ' + msg) + except socket.error as exc: + raise RuntimeError('Cannot connect to helper: %r' % exc) def send(self, cmd, args=''): self._connect() |