From 99e6e9153f5be6016b7b3e661a8e52ac3a205945 Mon Sep 17 00:00:00 2001 From: Maja Massarini Date: Tue, 13 Feb 2024 15:33:45 +0100 Subject: [PATCH] Do not use f-strings in logs --- src/validation/testcase/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/validation/testcase/base.py b/src/validation/testcase/base.py index d78984a..70f8b14 100644 --- a/src/validation/testcase/base.py +++ b/src/validation/testcase/base.py @@ -63,7 +63,8 @@ def run_test(self): self.pr.close() self.pr_branch_ref.delete() except Exception as e: - logging.error(f"Validation test {self.pr.title} ({self.pr.url}) failed: {e}") + msg = f"Validation test {self.pr.title} ({self.pr.url}) failed: {e}" + logging.error(msg) def trigger_build(self): """ @@ -215,7 +216,8 @@ def check_build_submitted(self): ) except Exception as e: # project does not exist yet - logging.warning(f"Copr project doesn't exist yet: {e}") + msg = f"Copr project doesn't exist yet: {e}" + logging.warning(msg) continue if len(new_builds) >= old_build_len + 1: