From: tierno Date: Mon, 3 Feb 2020 14:48:59 +0000 (+0000) Subject: fix 1006 command wim-show tries to load json twice X-Git-Tag: v7.0.1^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=09bb6134d43ca1449fbc2ccf7430de0da4f1e109;p=osm%2Fosmclient.git fix 1006 command wim-show tries to load json twice Change-Id: Ie444c6856c2541d207432ca98d0cbedccd91c192 Signed-off-by: tierno --- 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))