summaryrefslogtreecommitdiffstats
path: root/core/views/expo.py
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-19 01:33:08 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-19 01:33:08 +0100
commitaad6b70736e66cc15576993431585f80f948fc75 (patch)
tree9dbd1d2eb00333e226ba357f27924d5c6f3e65d1 /core/views/expo.py
parentd560b17ab674175afbb550d77d7d69070f6bec1d (diff)
downloadtroggle-aad6b70736e66cc15576993431585f80f948fc75.tar.gz
troggle-aad6b70736e66cc15576993431585f80f948fc75.tar.bz2
troggle-aad6b70736e66cc15576993431585f80f948fc75.zip
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r--core/views/expo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/views/expo.py b/core/views/expo.py
index 5f4e2b3..07a8c5c 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -129,7 +129,7 @@ def expowebpage(request, expowebpath, path):
return render(request, 'pagenotfound.html', {'path': path}, status="404")
try:
- with open(os.path.normpath(expowebpath / path), "r", encoding='utf-8') as o:
+ with open(os.path.normpath(expowebpath / path).encode(sysdefaultencoding), "r", encoding='utf-8') as o:
html = o.read()
except:
# exception raised on debian with python 3.9.2 but not on WSL Ubuntu with python 3.9.5