From 09bb6134d43ca1449fbc2ccf7430de0da4f1e109 Mon Sep 17 00:00:00 2001 From: tierno Date: Mon, 3 Feb 2020 14:48:59 +0000 Subject: [PATCH] fix 1006 command wim-show tries to load json twice Change-Id: Ie444c6856c2541d207432ca98d0cbedccd91c192 Signed-off-by: tierno --- osmclient/sol005/wim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osmclient/sol005/wim.py b/osmclient/sol005/wim.py index 90632c6..f9d2431 100644 --- a/osmclient/sol005/wim.py +++ b/osmclient/sol005/wim.py @@ -235,7 +235,7 @@ class Wim(object): resp = json.loads(resp) if not resp or '_id' not in resp: raise ClientException('failed to get wim info: '.format(resp)) - return json.loads(resp) + return resp except NotFound: raise NotFound("wim '{}' not found".format(name)) -- 2.17.1