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): ...@@ -364,11 +364,7 @@ class Connection(BaseConnection):
return return
PACKET_LOGGER.dispatch(self, packet, ' to ') PACKET_LOGGER.dispatch(self, packet, ' to ')
try: self.write_buf += packet()
self.write_buf += packet()
except PacketMalformedError:
logging.critical('trying to send a too big message')
raise
# If this is the first time, enable polling for writing. # If this is the first time, enable polling for writing.
if self.write_buf: 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