From 476db08b1600be76adc5da539c6f7c0603d47ee5 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 02859a29665..786bc535815 100644 --- a/django/db/transaction.py +++ b/django/db/transaction.py @@ -233,8 +233,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: @@ -259,8 +259,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: