diff options
author | B. Stack <bgstack15@gmail.com> | 2022-02-14 11:45:30 -0500 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-02-14 11:45:30 -0500 |
commit | 81a241207aa39b68a576b664834bca0b3e45f0fd (patch) | |
tree | 1f2c155f8c0dd8972c2d24d94285d0aa1aced09a | |
parent | refactor filenames and improve docs (diff) | |
download | stackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.tar.gz stackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.tar.bz2 stackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.zip |
suppress favicon errors
-rwxr-xr-x | stackbin.py | 7 |
1 files changed, 7 insertions, 0 deletions
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() |