From a3570798929337baeba237c7e7eec35d9f2c18c4 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Fri, 11 Apr 2014 23:01:00 +0200 Subject: [PATCH] Improved a comment. Thanks intgr for the report. --- django/db/transaction.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/django/db/transaction.py b/django/db/transaction.py index f6cadfc84ba..f75137a1687 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -318,8 +318,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: @@ -344,8 +344,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: