Skip to content
Snippets Groups Projects
Unverified Commit 9b2f5df4 authored by Agate's avatar Agate :speech_balloon:
Browse files

Fixed SPA decoding error when locale isn't set on system

parent 46028b43
No related branches found
No related tags found
No related merge requests found
......@@ -101,8 +101,8 @@ def get_spa_file(spa_url, name):
# strip the filename
path = os.path.join(os.path.dirname(spa_url), name)
# we try to open a local file
with open(path) as f:
return f.read()
with open(path, "rb") as f:
return f.read().decode("utf-8")
cache_key = "spa-file:{}:{}".format(spa_url, name)
cached = caches["local"].get(cache_key)
if cached:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment