[node-patches] Change in ovirt-node[master]: Fetch exception message correctly
fabiand at redhat.com
fabiand at redhat.com
Fri Sep 12 15:16:54 UTC 2014
Fabian Deutsch has uploaded a new change for review.
Change subject: Fetch exception message correctly
......................................................................
Fetch exception message correctly
Change-Id: Ie93a6d28e351af57fb6b6ec956fce9e23ea00267
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/__init__.py
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/70/32870/1
diff --git a/src/ovirt/node/utils/__init__.py b/src/ovirt/node/utils/__init__.py
index 6de61d5..5b6a33f 100644
--- a/src/ovirt/node/utils/__init__.py
+++ b/src/ovirt/node/utils/__init__.py
@@ -282,11 +282,11 @@
self.prepare()
self.commit()
except Exception as e:
- self.logger.debug("Transaction failed (%s): %s" %
- (e, e.message), exc_info=True)
+ self.logger.debug("Transaction failed: %s" % s,
+ exc_info=True)
self.abort()
raise exceptions.TransactionError("Transaction failed: " +
- "%s" % e.message)
+ "%s" % e)
self.logger.info("Transaction '%s' succeeded" % self)
return True
--
To view, visit http://gerrit.ovirt.org/32870
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie93a6d28e351af57fb6b6ec956fce9e23ea00267
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>
More information about the node-patches
mailing list