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