Commit 6ff9fa0e authored by Grégory Wisniewski's avatar Grégory Wisniewski

The __call__ on a packet can *never* raise PacketMalformedError.

This exception is used only during packet decoding.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1700 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 843f4728
......@@ -364,11 +364,7 @@ class Connection(BaseConnection):
return
PACKET_LOGGER.dispatch(self, packet, ' to ')
try:
self.write_buf += packet()
except PacketMalformedError:
logging.critical('trying to send a too big message')
raise
self.write_buf += packet()
# If this is the first time, enable polling for writing.
if self.write_buf:
......
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