[Neo-report] r2603 gregory - /trunk/neo/client/pool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 10 18:02:00 CET 2011
Author: gregory
Date: Mon Jan 10 18:02:00 2011
New Revision: 2603
Log:
The storage address should always be defined
Modified:
trunk/neo/client/pool.py
Modified: trunk/neo/client/pool.py
==============================================================================
--- trunk/neo/client/pool.py [iso-8859-1] (original)
+++ trunk/neo/client/pool.py [iso-8859-1] Mon Jan 10 18:02:00 2011
@@ -58,9 +58,7 @@ class ConnectionPool(object):
def _initNodeConnection(self, node):
"""Init a connection to a given storage node."""
addr = node.getAddress()
- if addr is None:
- return None
-
+ assert addr is not None
app = self.app
app.setNodeReady()
neo.logging.debug('trying to connect to %s - %s', node,
More information about the Neo-report
mailing list