netgis_map_client_update #452

Open
mpeltriaux wants to merge 5 commits from netgis_map_client_update into master
Showing only changes of commit 24518465f3 - Show all commits

View File

@ -50,7 +50,10 @@ class BaseClientProxyView(View):
)
content = response.content
if isinstance(content, bytes):
content = content.decode("utf-8")
try:
content = content.decode("utf-8")
except UnicodeDecodeError:
content = f"Can not decode content of {url}"
return content, response.status_code