Skip to content
Snippets Groups Projects
Commit 8e9e2f1d authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

fix typo

parent aafa02c2
No related branches found
Tags nbxmpp-0.5.1
No related merge requests found
......@@ -370,7 +370,7 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
self._sock.setblocking(False)
self._sock.connect((self.server, self.port))
except Exception as exc:
errnum, errstr = exc.errno,
errnum, errstr = exc.errno,\
exc.strerror.decode(locale.getpreferredencoding())
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
......@@ -602,7 +602,7 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
except tls_nb.SSLWrapper.Error as e:
log.info("_do_receive, caught SSL error, got %s:" % received,
exc_info=True)
errnum, errstr = e.errno,
errnum, errstr = e.errno,\
e.strerror.decode(locale.getpreferredencoding())
if received == '':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment