diff --git a/welco/utils.py b/welco/utils.py index f4cdbee..1447cfe 100644 --- a/welco/utils.py +++ b/welco/utils.py @@ -68,8 +68,8 @@ def get_wcs_json(wcs_url, path, wcs_site): signed_url = sign_url(url + '?orig=%s' % wcs_site.get('orig'), wcs_site.get('secret')) response_json = requests.get(signed_url, headers={'accept': 'application/json'}, timeout=10).json() - if not isinstance(json_response, dict): - json_response = {'data': json_response} + if not isinstance(response_json, dict): + response_json = {'data': response_json} cache.set(url, response_json) return response_json