1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

[1.7.x] Improved a comment. Thanks intgr for the report.

Backport of 476db08 from master
This commit is contained in:
Aymeric Augustin 2014-04-11 23:01:00 +02:00
parent 593e72c141
commit 3f48ca2071

View File

@ -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: