mirror of https://github.com/django/django.git
Improved a comment. Thanks intgr for the report.
This commit is contained in:
parent
c487b1e230
commit
476db08b16
|
@ -233,8 +233,8 @@ class Atomic(object):
|
||||||
try:
|
try:
|
||||||
connection.rollback()
|
connection.rollback()
|
||||||
except Error:
|
except Error:
|
||||||
# Error during rollback means the connection was
|
# An error during rollback means that something
|
||||||
# closed. Clean up in case the server dropped it.
|
# went wrong with the connection. Drop it.
|
||||||
connection.close()
|
connection.close()
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
|
@ -259,8 +259,8 @@ class Atomic(object):
|
||||||
try:
|
try:
|
||||||
connection.rollback()
|
connection.rollback()
|
||||||
except Error:
|
except Error:
|
||||||
# Error during rollback means the connection was
|
# An error during rollback means that something
|
||||||
# closed. Clean up in case the server dropped it.
|
# went wrong with the connection. Drop it.
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue