aboutsummaryrefslogtreecommitdiff
path: root/stackbin.py
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-02-14 11:45:30 -0500
committerB. Stack <bgstack15@gmail.com>2022-02-14 11:45:30 -0500
commit81a241207aa39b68a576b664834bca0b3e45f0fd (patch)
tree1f2c155f8c0dd8972c2d24d94285d0aa1aced09a /stackbin.py
parentrefactor filenames and improve docs (diff)
downloadstackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.tar.gz
stackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.tar.bz2
stackbin-81a241207aa39b68a576b664834bca0b3e45f0fd.zip
suppress favicon errors
Diffstat (limited to 'stackbin.py')
-rwxr-xr-xstackbin.py7
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()
bgstack15