Yet again retarded error
This commit is contained in:
parent
dfa7138091
commit
ec5b288e68
@ -48,7 +48,7 @@ def get_pandoc_page(page):
|
||||
with open(whitelist, 'r') as f:
|
||||
lines = f.read().splitlines()
|
||||
if page not in lines:
|
||||
print('Access to page not in list {page}')
|
||||
print(f'Access to page not in list {page}')
|
||||
return 'This page does not exist'
|
||||
if not os.path.exists(f'{path}'):
|
||||
# TODO: Add 404 handler
|
||||
|
Reference in New Issue
Block a user