Skip to content

Commit

Permalink
Do not use f-strings in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
majamassarini committed Feb 13, 2024
1 parent 47650d1 commit 99e6e91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/validation/testcase/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 99e6e91

Please sign in to comment.