Skip to content

Commit d3cc00e

Browse files
authored
Merge pull request #111 from nuclearcat/fix-quotes
Fix f-string syntax errors in results.py
2 parents fc0b1a1 + 0237536 commit d3cc00e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kcidev/subcommands/results.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def cmd_builds(data, commit, download_logs, status):
256256
file.write(log)
257257
log_path = "file://" + os.path.join(os.getcwd(), log_file)
258258
except:
259-
kci_err(f"Failed to fetch log {build["log_url"]}.")
259+
kci_err(f"Failed to fetch log {build['log_url']}.")
260260
pass
261261

262262
kci_msg_nonl("- config:")
@@ -329,12 +329,12 @@ def cmd_tests(data, commit, download_logs, status_filter, filter):
329329
try:
330330
log_gz = requests.get(test["log_url"])
331331
log = gzip.decompress(log_gz.content)
332-
log_file = f"{test["misc"]["platform"]}__{test["path"]}__{test['config']}-{test['architecture']}-{test['compiler']}-{commit}.log"
332+
log_file = f"{test['misc']['platform']}__{test['path']}__{test['config']}-{test['architecture']}-{test['compiler']}-{commit}.log"
333333
with open(log_file, mode="wb") as file:
334334
file.write(log)
335335
log_path = "file://" + os.path.join(os.getcwd(), log_file)
336336
except:
337-
kci_err(f"Failed to fetch log {test["log_url"]}.")
337+
kci_err(f"Failed to fetch log {test['log_url']}.")
338338
pass
339339

340340
kci_msg_nonl("- test path: ")
@@ -364,7 +364,7 @@ def cmd_tests(data, commit, download_logs, status_filter, filter):
364364
elif test["status"] == "FAIL":
365365
kci_msg_red_nonl("FAIL")
366366
else:
367-
kci_msg_yellow_nonl(f"INCONCLUSIVE (status: {test["status"]})")
367+
kci_msg_yellow_nonl(f"INCONCLUSIVE (status: {test['status']})")
368368
kci_msg("")
369369

370370
kci_msg(f" log: {log_path}")

0 commit comments

Comments
 (0)