surplus-dev 4 лет назад
Родитель
Сommit
af97a6ed56
1 измененных файлов с 2 добавлено и 2 удалено
  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))