2
0

main_error_404.py 236 B

1234567
  1. from .tool.func import *
  2. def main_error_404(e = ''):
  3. if os.path.exists('404.html') and flask.request.path != '/':
  4. return open('404.html', encoding = 'utf8').read(), 404
  5. else:
  6. return redirect('/w/' + wiki_set(2))