summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/pool.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/pool.py')
-rw-r--r--lib/sqlalchemy/pool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py
index 3d8f8279f..2b9ecb250 100644
--- a/lib/sqlalchemy/pool.py
+++ b/lib/sqlalchemy/pool.py
@@ -206,8 +206,8 @@ class _ConnectionFairy(object):
def __del__(self):
self._close()
def _close(self):
- if self.cursors is not None and len(self.cursors):
- raise exceptions.InvalidRequestError("This connection still has %d open cursors" % len(self.cursors))
+# if self.cursors is not None and len(self.cursors):
+# raise exceptions.InvalidRequestError("This connection still has %d open cursors" % len(self.cursors))
if self.connection is not None:
try:
self.connection.rollback()