Loading django/db/transaction.py +4 −4 Original line number Diff line number Diff line Loading @@ -341,8 +341,8 @@ class Atomic(object): try: connection.rollback() except Error: # Error during rollback means the connection was # closed. Clean up in case the server dropped it. # An error during rollback means that something # went wrong with the connection. Drop it. connection.close() raise else: Loading @@ -367,8 +367,8 @@ class Atomic(object): try: connection.rollback() except Error: # Error during rollback means the connection was # closed. Clean up in case the server dropped it. # An error during rollback means that something # went wrong with the connection. Drop it. connection.close() finally: Loading Loading
django/db/transaction.py +4 −4 Original line number Diff line number Diff line Loading @@ -341,8 +341,8 @@ class Atomic(object): try: connection.rollback() except Error: # Error during rollback means the connection was # closed. Clean up in case the server dropped it. # An error during rollback means that something # went wrong with the connection. Drop it. connection.close() raise else: Loading @@ -367,8 +367,8 @@ class Atomic(object): try: connection.rollback() except Error: # Error during rollback means the connection was # closed. Clean up in case the server dropped it. # An error during rollback means that something # went wrong with the connection. Drop it. connection.close() finally: Loading