Yet again retarded error

This commit is contained in:
thematdev 2022-04-04 23:16:37 +03:00
parent dfa7138091
commit ec5b288e68

View File

@ -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