Browse Source

Improved a comment. Thanks intgr for the report.

Aymeric Augustin 11 years ago
parent
commit
476db08b16
1 changed files with 4 additions and 4 deletions
  1. 4 4
      django/db/transaction.py

+ 4 - 4
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: