From: madavi Date: Tue, 28 May 2019 05:26:29 +0000 (+0530) Subject: Bug 704 Minor code change for exception details X-Git-Tag: v6.0.0~11 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F7559%2F1;p=osm%2Fosmclient.git Bug 704 Minor code change for exception details Change-Id: I66bb530b17a774de1bc328182e53eb4035f09121 Signed-off-by: madavi --- 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))