[1.7.x] Improved a comment. Thanks intgr for the report.
Backport of 476db08
from master
This commit is contained in:
parent
593e72c141
commit
3f48ca2071
|
@ -341,8 +341,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:
|
||||||
|
@ -367,8 +367,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