fix reference to unknown variable (#21376)

This commit is contained in:
Josue Kouka 2018-01-23 17:51:20 +01:00
parent 2d82df52af
commit dbb904cdf3
1 changed files with 2 additions and 2 deletions

View File

@ -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