From 81a241207aa39b68a576b664834bca0b3e45f0fd Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 14 Feb 2022 11:45:30 -0500 Subject: suppress favicon errors --- stackbin.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/stackbin.py b/stackbin.py index aac3f49..4c0d164 100755 --- a/stackbin.py +++ b/stackbin.py @@ -276,6 +276,13 @@ def admin(): all_pastes = get_all_pastes() return render_template('admin.html', pastes = all_pastes) +@app.route('/favicon.ico') +def favicon(): + try: + return redirect(url_for('static', filename='favicon.ico')) + except: + abort(404) + if __name__ == "__main__": manager.add_command('runserver', Server(host=app.config["APP_HOST"], port=app.config["APP_PORT"])) app.run() -- cgit