Skip to content

Commit f2eb7f6

Browse files
committed
results: fix crash when log file is not found
We were using the wrong var in the error string. Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.com>
1 parent 116422d commit f2eb7f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kcidev/subcommands/results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def cmd_builds(data, commit, download_logs, status):
250250
file.write(log)
251251
log_path = "file://" + os.path.join(os.getcwd(), log_file)
252252
except:
253-
kci_err(f"Failed to fetch log {log_file}).")
253+
kci_err(f"Failed to fetch log {build["log_url"]}.")
254254
pass
255255

256256
kci_msg_nonl("- config:")
@@ -328,7 +328,7 @@ def cmd_tests(data, commit, download_logs, status_filter, filter):
328328
file.write(log)
329329
log_path = "file://" + os.path.join(os.getcwd(), log_file)
330330
except:
331-
kci_err(f"Failed to fetch log {log_file}).")
331+
kci_err(f"Failed to fetch log {test["log_url"]}.")
332332
pass
333333

334334
kci_msg_nonl("- test path: ")

0 commit comments

Comments
 (0)