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): ...@@ -352,11 +352,12 @@ class Application(object):
node_list = [] node_list = []
for n in self.nm.getList(): for n in self.nm.getList():
if not n.isAdmin(): if not n.isAdmin():
try: node_list.append((
address = n.getAddress() n.getType(),
except TypeError: n.getAddress(),
address = None n.getUUID(),
node_list.append((n.getType(), address, n.getUUID(), n.getState())) n.getState()
))
# Split the packet if too huge. # Split the packet if too huge.
if len(node_list) == 10000: if len(node_list) == 10000:
conn.notify(protocol.notifyNodeInformation(node_list)) 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