summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Green <martin.speleo@gmail.com>2022-06-19 01:41:48 +0100
committerMartin Green <martin.speleo@gmail.com>2022-06-19 01:41:48 +0100
commite33ce724c04b9ccfc7ef09e5648546c95724f481 (patch)
tree90351d94d5a7781b3c8da95db63a644f61af7566
parent86b24c9dfee0810962e73b16ad4592a6a01aaca5 (diff)
downloadtroggle-e33ce724c04b9ccfc7ef09e5648546c95724f481.tar.gz
troggle-e33ce724c04b9ccfc7ef09e5648546c95724f481.tar.bz2
troggle-e33ce724c04b9ccfc7ef09e5648546c95724f481.zip
test
-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 8f14665..b282b40 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -123,7 +123,7 @@ def expofilesdir(request, dirpath, filepath):
def expowebpage(request, expowebpath, path):
'''Adds menus and serves an HTML page
'''
- if not Path(expowebpath / path.encode(sysdefaultencoding)).is_file():
+ if not Path(expowebpath / path).is_file():
# Should not get here if the path has suffix "_edit"
print(f' - 404 error in expowebpage() {path}')
return render(request, 'pagenotfound.html', {'path': path}, status="404")