fix reference to unknown variable (#21376)
This commit is contained in:
parent
2d82df52af
commit
dbb904cdf3
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue