Federico Simoncelli has uploaded a new change for review. Change subject: misc: use approriate raise form in RollbackContext ......................................................................
misc: use approriate raise form in RollbackContext To avoid a pep8 error (W602 deprecated form of raising exception) the RollbackContext.__exit__ method should use the appropriate form to raise an exception. Change-Id: I390771ad2465069400bd777c4463019609ae17d8 Signed-off-by: Federico Simoncelli <[email protected]> --- M vdsm/storage/misc.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/60/9360/1 diff --git a/vdsm/storage/misc.py b/vdsm/storage/misc.py index 6360dcf..9126080 100644 --- a/vdsm/storage/misc.py +++ b/vdsm/storage/misc.py @@ -738,7 +738,7 @@ # re-raise the earliest exception if firstException is not None: - raise firstException, None, traceback + raise firstException(None, traceback) def defer(self, func, *args, **kwargs): self._finally.append((func, args, kwargs)) -- To view, visit http://gerrit.ovirt.org/9360 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I390771ad2465069400bd777c4463019609ae17d8 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Federico Simoncelli <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
