forked from expo/troggle
test
This commit is contained in:
@@ -129,7 +129,7 @@ def expowebpage(request, expowebpath, path):
|
|||||||
return render(request, 'pagenotfound.html', {'path': path}, status="404")
|
return render(request, 'pagenotfound.html', {'path': path}, status="404")
|
||||||
|
|
||||||
try:
|
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()
|
html = o.read()
|
||||||
except:
|
except:
|
||||||
# exception raised on debian with python 3.9.2 but not on WSL Ubuntu with python 3.9.5
|
# exception raised on debian with python 3.9.2 but not on WSL Ubuntu with python 3.9.5
|
||||||
|
|||||||
Reference in New Issue
Block a user