summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-04-11 23:01:00 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-04-11 23:03:25 +0200
commit3f48ca207130db502c8a9f8b7e6efa04453c4504 (patch)
tree42ad199f868106c8aed0ddbd8b8e4e549695fef0
parent593e72c141f52b9f581b65314f421d70c6abde02 (diff)
[1.7.x] Improved a comment. Thanks intgr for the report.
Backport of 476db08 from master
-rw-r--r--django/db/transaction.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/transaction.py b/django/db/transaction.py
index aae0f3f714..d8f7692ba4 100644
--- a/django/db/transaction.py
+++ b/django/db/transaction.py
@@ -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:
@@ -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: