From 3787fdf674d236576f81082e4c8b1b2a1347197f Mon Sep 17 00:00:00 2001 From: Hannah Bast Date: Sun, 24 Nov 2024 21:38:32 +0100 Subject: [PATCH] Try to fix error in Ubuntu 22.04 workflow --- src/qlever/commands/example_queries.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qlever/commands/example_queries.py b/src/qlever/commands/example_queries.py index bb1f41a7..0446274f 100644 --- a/src/qlever/commands/example_queries.py +++ b/src/qlever/commands/example_queries.py @@ -386,11 +386,12 @@ def execute(self, args) -> bool: error_msg["long"] = ( error_msg["long"][: args.width_error_message - 3] + "..." ) + seperator_short_long = "\n" if args.show_query == "on-error" else " " log.info( f"{description:<{args.width_query_description}} " f"{colored('FAILED ', 'red')}" f"{colored(error_msg['short'], 'red')}" - f"{'\n' if args.show_query == 'on-error' else ' '}" + f"{seperator_short_long}" f"{colored(error_msg['long'], 'red')}" ) if args.show_query == "on-error":