Commit 1c357efa authored by Jeremy Hylton's avatar Jeremy Hylton

Fix typo and use msg to raise statement.

parent 61f58489
...@@ -52,10 +52,9 @@ class AbstractTransactionManager(object): ...@@ -52,10 +52,9 @@ class AbstractTransactionManager(object):
txn._status = Status.FAILED txn._status = Status.FAILED
self.abort(txn) self.abort(txn)
msg = ("Transaction failed during second phase of two-" msg = ("Transaction failed during second phase of two-"
"phase commmit") "phase commit")
self.logger.critical(msg, exc_info=error) self.logger.critical(msg, exc_info=error)
raise TransactionError("Transaction failed during second " raise TransactionError(msg)
"phase of two-phase commit")
def abort(self, txn): def abort(self, txn):
self.logger.debug("%s: abort", txn) self.logger.debug("%s: abort", txn)
......
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