From 594ddbd7404e0e5f9dd22e4386de58d0481b097d Mon Sep 17 00:00:00 2001 From: Felix Blanke Date: Fri, 1 Sep 2023 11:02:24 +0200 Subject: [PATCH] Handle case with no arg --- wsgi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wsgi.py b/wsgi.py index 5d757ff..634255f 100644 --- a/wsgi.py +++ b/wsgi.py @@ -290,9 +290,12 @@ def tables(): output_str.append(tfoot) output_str.append(table[idx:]) - importance_factor = float(request.args.get("importance")) + + importance_factor = request.args.get("importance") if not importance_factor: importance_factor = 1.0 + else: + importance_factor = float(importance_factor) output_str = []