surplus-dev 4 년 전
부모
커밋
86bfc94d56
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))