Commit 295a2fa8 authored by Vincent Pelletier's avatar Vincent Pelletier

Only catch KeyErrors generated when fetching a connection to avoid hiding...

Only catch KeyErrors generated when fetching a connection to avoid hiding other exceptions. (missed in r687)


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@696 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ec2ac947
......@@ -107,13 +107,14 @@ class SelectEventManager(object):
# This can fail, if a connection is closed in readable().
try:
conn = self.connection_dict[s]
except KeyError:
pass
else:
conn.lock()
try:
conn.writable()
finally:
conn.unlock()
except KeyError:
pass
# Check idle events. Do not check them out too often, because this
# is somehow heavy.
......
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