diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:55:01 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-19 01:55:01 +0100 |
commit | b75a91ed708aa3677724f66f72062ee1b51b7ae1 (patch) | |
tree | f35262e4638f9d10298b204bc2cce838a12db1b5 /core/views/expo.py | |
parent | 02a3d6a359a14843bdaaef3d0834a84bee1c6833 (diff) | |
download | troggle-b75a91ed708aa3677724f66f72062ee1b51b7ae1.tar.gz troggle-b75a91ed708aa3677724f66f72062ee1b51b7ae1.tar.bz2 troggle-b75a91ed708aa3677724f66f72062ee1b51b7ae1.zip |
test
Diffstat (limited to 'core/views/expo.py')
-rw-r--r-- | core/views/expo.py | 2 |
1 files changed, 1 insertions, 1 deletions
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") |