diff --git a/main.py b/main.py index c2b7658..6ce3f3d 100644 --- a/main.py +++ b/main.py @@ -6,6 +6,10 @@ import home, login, panel, register, logout app = flask.Flask(__name__) app.secret_key = config.secret +@app.errorhandler(404) +def not_found(e): + return (flask.redirect("/")) + if (__name__ == "__main__"): app.register_blueprint(home.page) app.register_blueprint(login.page)