Commit 8037f337 authored by Grégory Wisniewski's avatar Grégory Wisniewski

The storage address should always be defined

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2603 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 9e15dffe
...@@ -58,9 +58,7 @@ class ConnectionPool(object): ...@@ -58,9 +58,7 @@ class ConnectionPool(object):
def _initNodeConnection(self, node): def _initNodeConnection(self, node):
"""Init a connection to a given storage node.""" """Init a connection to a given storage node."""
addr = node.getAddress() addr = node.getAddress()
if addr is None: assert addr is not None
return None
app = self.app app = self.app
app.setNodeReady() app.setNodeReady()
neo.logging.debug('trying to connect to %s - %s', node, neo.logging.debug('trying to connect to %s - %s', node,
......
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