From 4cf06fb2ad8d7865227ef9600a11795cbc41d641 Mon Sep 17 00:00:00 2001 From: madavi Date: Tue, 28 May 2019 10:56:29 +0530 Subject: [PATCH] Bug 704 Minor code change for exception details Change-Id: I66bb530b17a774de1bc328182e53eb4035f09121 Signed-off-by: madavi --- osmclient/sol005/nsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/sol005/nsd.py b/osmclient/sol005/nsd.py index b134461..873be5b 100644 --- a/osmclient/sol005/nsd.py +++ b/osmclient/sol005/nsd.py @@ -116,7 +116,7 @@ class Nsd(object): msg = "" if resp: try: - resp = json.loads(resp) + msg = json.loads(resp) except ValueError: msg = resp raise ClientException("failed to delete nsd {} - {}".format(name, msg)) -- 2.25.1