Commit 7b380f43 authored by Brian Lloyd's avatar Brian Lloyd

Merged last Python 2.2 bugfix.

parent 12a6412a
......@@ -212,7 +212,13 @@ class dispatcher:
# I think it should inherit this anyway
self.socket.setblocking (0)
self.connected = 1
self.addr = sock.getpeername()
# XXX Does the constructor require that the socket passed
# be connected?
try:
self.addr = sock.getpeername()
except socket.error:
# The addr isn't crucial
pass
else:
self.socket = None
......
......@@ -212,7 +212,13 @@ class dispatcher:
# I think it should inherit this anyway
self.socket.setblocking (0)
self.connected = 1
self.addr = sock.getpeername()
# XXX Does the constructor require that the socket passed
# be connected?
try:
self.addr = sock.getpeername()
except socket.error:
# The addr isn't crucial
pass
else:
self.socket = None
......
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