From 7b8d6c6e4af23dc5098ad4dc0e23097175c091d2 Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Mon, 25 Nov 2024 03:04:37 +0100 Subject: [PATCH] Alway convert the `result_size` to `int` --- src/qlever/commands/example_queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qlever/commands/example_queries.py b/src/qlever/commands/example_queries.py index 8fcfd18d..716e1826 100644 --- a/src/qlever/commands/example_queries.py +++ b/src/qlever/commands/example_queries.py @@ -374,7 +374,6 @@ def execute(self, args) -> bool: f'jq -r ".results.bindings | length"' f" {result_file}", return_output=True, ) - result_size = int(result_size) except Exception as e: error_msg = { "short": "Malformed JSON", @@ -390,6 +389,7 @@ def execute(self, args) -> bool: description = description[: args.width_query_description - 3] description += "..." if error_msg is None: + result_size = int(result_size) log.info( f"{description:<{args.width_query_description}} " f"{time_seconds:6.2f} s "