Commit 6951ceb1 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix regression introduced in r1689.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1726 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4bc66201
...@@ -50,7 +50,7 @@ class Dispatcher: ...@@ -50,7 +50,7 @@ class Dispatcher:
def pop(self, conn, msg_id, default=MARKER): def pop(self, conn, msg_id, default=MARKER):
"""Retrieve register-time provided payload.""" """Retrieve register-time provided payload."""
result = self.message_table.get(id(conn), EMPTY).pop(msg_id, default) result = self.message_table.get(id(conn), EMPTY).pop(msg_id, default)
if default is MARKER: if result is MARKER:
raise KeyError, (id(conn), msg_id) raise KeyError, (id(conn), msg_id)
return result return result
......
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