Yedidyah Bar David has uploaded a new change for review. Change subject: core: Do not fail on internal disconnect-at-constructor ......................................................................
core: Do not fail on internal disconnect-at-constructor Change-Id: I14e8e8ca00a99263227053a47129b93bcb27b7d1 Related-To: https://bugzilla.redhat.com/996021 Signed-off-by: Yedidyah Bar David <[email protected]> --- M src/ovirtsdk/api.py 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine-sdk refs/changes/53/27753/1 diff --git a/src/ovirtsdk/api.py b/src/ovirtsdk/api.py index f3cf68c..e5a1b5c 100644 --- a/src/ovirtsdk/api.py +++ b/src/ovirtsdk/api.py @@ -94,7 +94,10 @@ # when detected instance of the SDK proxy with # ref-count == 0 if context.manager.has_key(self.__id): - self.disconnect() + try: + self.disconnect() + except DisconnectedError: + pass # Or do something else? What? # Remove trailing slashes from the URL: url = url.rstrip('/') -- To view, visit http://gerrit.ovirt.org/27753 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I14e8e8ca00a99263227053a47129b93bcb27b7d1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine-sdk Gerrit-Branch: master Gerrit-Owner: Yedidyah Bar David <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
