diff options
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() |