From b75a91ed708aa3677724f66f72062ee1b51b7ae1 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sun, 19 Jun 2022 01:55:01 +0100 Subject: test --- core/views/expo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/views/expo.py b/core/views/expo.py index 5844445..bb81680 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 os.path.is_file(os.path.normpath(expowebpath / path).encode(sysdefaultencoding)): + if not os.path.isfile(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") -- cgit v1.2.3