From 993039c020f95879e294b4151c910b81608fb97d Mon Sep 17 00:00:00 2001 From: Levi Date: Sun, 11 Jun 2017 12:59:57 -0500 Subject: [PATCH] fixing 500 error --- opennebula_api/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opennebula_api/models.py b/opennebula_api/models.py index 77c95db4..7330a7fe 100644 --- a/opennebula_api/models.py +++ b/opennebula_api/models.py @@ -501,7 +501,8 @@ class OpenNebulaManager(): public_key = old_key.replace(public_key, '') except AttributeError: - raise KeyDoesNotExistsError() + return False + #raise KeyDoesNotExistsError() self.oneadmin_client.call('user.update', open_user.id, '{key}'.format(key=public_key))