summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosue Kouka <jkouka@entrouvert.com>2018-01-23 16:51:20 (GMT)
committerJosue Kouka <jkouka@entrouvert.com>2018-01-23 16:51:20 (GMT)
commitdbb904cdf3bb4b1ec5de4211b4abfebe8ac8ab5b (patch)
tree1f3f3b0aa9b2c86f24cadf7fbc0ad7719a2be614
parent2d82df52af0f5511f574a3f7198bcde0b4b5d95f (diff)
downloadwelco-dbb904cdf3bb4b1ec5de4211b4abfebe8ac8ab5b.zip
welco-dbb904cdf3bb4b1ec5de4211b4abfebe8ac8ab5b.tar.gz
welco-dbb904cdf3bb4b1ec5de4211b4abfebe8ac8ab5b.tar.bz2
fix reference to unknown variable (#21376)v0.58
-rw-r--r--welco/utils.py4
1 files changed, 2 insertions, 2 deletions
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