From edda26b7b39e8649f6de6d8cfcd8d70fea3c662c Mon Sep 17 00:00:00 2001 From: Tyler Date: Sat, 14 Jan 2023 10:12:30 -0800 Subject: [PATCH] define landing page fix --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index e1a0839..3950ec2 100644 --- a/app.py +++ b/app.py @@ -154,7 +154,7 @@ def ref_parse_book(ref): @app.get("/define") def define(): ref = request.args.get("kw", None) - ref = ref.strip() + if ref: ref = ref.strip() if not ref: return send_file("html/dictionary.html") with open(dictionary_json, 'r') as data: