From 964ad2f644cf2ca233df5b45103f1c4dba3ac86e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Tue, 17 Dec 2019 15:12:02 +0100 Subject: [PATCH] Fix crash lower() --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 38ca0b5..04e783d 100644 --- a/app.py +++ b/app.py @@ -14,7 +14,7 @@ def verify_password(username, password): @app.template_filter('boldify') def boldify(name): - query = request.args.get('q') + query = request.args.get('q', '') name = Connector.boldify(name, query) for keyword in db.session.query(AnimeTitle.keyword.distinct()).all(): if keyword[0].lower() != query.lower():