mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Improved a comment. Thanks intgr for the report.
This commit is contained in:
parent
d501c79f7b
commit
a357079892
1 changed files with 4 additions and 4 deletions
|
@ -318,8 +318,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:
|
||||
|
@ -344,8 +344,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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue