Commit b0f4eecf authored by Aymeric Augustin's avatar Aymeric Augustin Committed by Tim Graham
Browse files

Ignored repeated calls to connection.close().

Forwardport of 9bbb43dd from stable/1.7.x
parent d238c589
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -183,6 +183,8 @@ class BaseDatabaseWrapper(object):
        # Don't call validate_no_atomic_block() to avoid making it difficult
        # to get rid of a connection in an invalid state. The next connect()
        # will reset the transaction state anyway.
        if self.closed_in_transaction or self.connection is None:
            return
        try:
            self._close()
        finally: