surplus-dev 4 anni fa
parent
commit
86bfc94d56
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      route/main_error_404.py

+ 2 - 2
route/main_error_404.py

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