Commit 2b55027b authored by Jeremy Hylton's avatar Jeremy Hylton

Fix typo and use msg to raise statement.

parent eea28a70
...@@ -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