Commit 3ac8eab4 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Don't catch UnexpectedPacketError.

Packet logger returns None is not implemented.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1519 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 65d90cfd
......@@ -44,11 +44,7 @@ class PacketLogger(EventHandler):
except PacketMalformedError:
logging.warning("Can't decode packet for logging")
return
try:
log_message = logger(conn, packet, *args)
except UnexpectedPacketError:
logging.warning('No logger implemented for packet' % klass)
return
log_message = logger(conn, packet, *args)
if log_message is not None:
logging.debug('#0x%08x %s', packet.getId(), log_message)
......
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