diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-02 15:14:09 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-02 15:14:09 -0400 |
| commit | 626ae5b7a1625835011c25469937549a74186157 (patch) | |
| tree | 5427c6a5a90f80f8163ae21eeeeabc186758c5f9 /lib/sqlalchemy/engine | |
| parent | 7ea8485ea6db4af6b4862c624752c93090968d06 (diff) | |
| download | sqlalchemy-626ae5b7a1625835011c25469937549a74186157.tar.gz | |
- fixes for mxODBC, some pyodbc
- enhancements to test suite including ability to set up a testing engine
for a whole test class, fixes to how noseplugin sets up/tears
down per-class context
Diffstat (limited to 'lib/sqlalchemy/engine')
| -rw-r--r-- | lib/sqlalchemy/engine/base.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index af7341081..47594407f 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -947,7 +947,9 @@ class Connection(Connectable): ex_text = str(e) except TypeError: ex_text = repr(e) - self.connection._logger.warn("Error closing cursor: %s", ex_text) + if not self.closed: + self.connection._logger.warn( + "Error closing cursor: %s", ex_text) if isinstance(e, (SystemExit, KeyboardInterrupt)): raise |
