Commit 00840676 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Remove useless type/except, the address tuple is no more splitted before pass to

the packet encoder.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1328 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 27b900a5
......@@ -352,11 +352,12 @@ class Application(object):
node_list = []
for n in self.nm.getList():
if not n.isAdmin():
try:
address = n.getAddress()
except TypeError:
address = None
node_list.append((n.getType(), address, n.getUUID(), n.getState()))
node_list.append((
n.getType(),
n.getAddress(),
n.getUUID(),
n.getState()
))
# Split the packet if too huge.
if len(node_list) == 10000:
conn.notify(protocol.notifyNodeInformation(node_list))
......
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