Skip to content
Snippets Groups Projects
Commit 62710e90 authored by Alexander Cherniuk's avatar Alexander Cherniuk
Browse files

Corrected exception handling. We really should bump to Python 2.6. Fixes #5778

parent 2017945e
No related branches found
No related tags found
No related merge requests found
......@@ -351,8 +351,8 @@ class NonBlockingTCP(NonBlockingTransport, IdleObject):
try:
self._sock.setblocking(False)
self._sock.connect((self.server, self.port))
except Exception, (errnum, errstr):
pass
except Exception, exc:
errnum, errstr = exc.args
if errnum in (errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK):
# connecting in progress
......
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