Kaydet (Commit) 476db08b authored tarafından Aymeric Augustin's avatar Aymeric Augustin

Improved a comment. Thanks intgr for the report.

üst c487b1e2
...@@ -233,8 +233,8 @@ class Atomic(object): ...@@ -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): ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment