This commit is contained in:
Mr Chen
2024-12-01 20:24:57 +08:00
parent 5b92f109b9
commit 34b435ffca
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -130,6 +130,7 @@ def requestAfter(response):
@app.errorhandler(404)
def page_unauthorized(error):
from flask import redirect
return redirect('/', code=302)
# return render_template_string('404 not found', error_info=error), 404