Commit 845157c0 authored by Denis Bilenko's avatar Denis Bilenko

socket: clear sys.exc_info before switching in accept()

parent 96c95187
......@@ -254,6 +254,7 @@ class socket(object):
except error, ex:
if ex[0] != errno.EWOULDBLOCK or self.timeout == 0.0:
raise
sys.exc_clear()
wait_read(self._sock.fileno(), timeout=self.timeout)
return socket(_sock=client_socket), address
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment