Issue 1481:error using do_connect=False parameter in DAL creation with mongodb and couchdb is fixed, thanks Alan

This commit is contained in:
mdipierro committed 2013-05-10 08:28:52 -05:00
1 parent 714fcc5202
commit 6590de030c
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -1 +1 @@
Version 2.4.6-stable+timestamp.2013.05.10.08.25.20 Version 2.4.6-stable+timestamp.2013.05.10.08.28.07
+4
View File
@@ -590,6 +590,10 @@ class ConnectionPool(object):
if f is None: if f is None:
f = self.connector f = self.connector
if not hasattr(self, "driver") or self.driver is None:
LOGGER.debug("Skipping connection since there's no driver")
return
if not self.pool_size: if not self.pool_size:
self.connection = f() self.connection = f()
self.cursor = cursor and self.connection.cursor() self.cursor = cursor and self.connection.cursor()