Commit 6961628f authored by Vincent Pelletier's avatar Vincent Pelletier

Get rid of a try:..except: pass.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1607 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 87ea655c
......@@ -255,12 +255,9 @@ class Connection(BaseConnection):
# Remove idle events, if appropriate packets were received.
for msg_id in (None, packet.getId()):
try:
event = self.event_dict[msg_id]
del self.event_dict[msg_id]
event = self.event_dict.pop(msg_id, None)
if event is not None:
self.em.removeIdleEvent(event)
except KeyError:
pass
try:
packet_type = packet.getType()
......
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