This commit is contained in:
Martin Green 2022-06-19 01:53:13 +01:00
parent 8372d9d85c
commit 02a3d6a359

View File

@ -123,7 +123,7 @@ def expofilesdir(request, dirpath, filepath):
def expowebpage(request, expowebpath, path):
'''Adds menus and serves an HTML page
'''
if not os.path.is_file(os.path.normpath(expowebpath / path).encode(sysdefaultencoding):
if not os.path.is_file(os.path.normpath(expowebpath / path).encode(sysdefaultencoding)):
# 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")