Skip to content

Commit

Permalink
Alway convert the result_size to int
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannah Bast committed Nov 25, 2024
1 parent 6eb71af commit 7b8d6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qlever/commands/example_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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 "
Expand Down

0 comments on commit 7b8d6c6

Please sign in to comment.