diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2022-10-17 21:07:21 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-10-17 17:48:21 +0200 |
commit | 030019d08141530760877ec20b00fb100ec124bb (patch) | |
tree | 0a74fe614d920a2e146d37ba2fcdaabb75871716 | |
parent | dd44e0f74dcd02d26e2920af2e04944e5b131e69 (diff) |
cerbero: Actually print the sha for which the cache was not found
There's a %s that's not being substituted. Replace a few more
occurrences with f-strings, since they are less error-prone.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/968>
-rw-r--r-- | cerbero/commands/cache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cerbero/commands/cache.py b/cerbero/commands/cache.py index a3e9debf..4b8b60a9 100644 --- a/cerbero/commands/cache.py +++ b/cerbero/commands/cache.py @@ -137,14 +137,14 @@ class FetchCache(BaseCache): m.message(f"Matching cache file is {dep['url']}") return dep if allow_old: - m.message("Did not find cache for commit %s, looking for an older one..."); + m.message(f"Did not find cache for commit {sha}, looking for an older one..."); for dep in deps: if self.get_git_sha_is_ancestor(dep['commit']): m.message(f"Latest available cache file is {dep['url']}") return dep - m.warning("Did not find any cache for commit %s" % sha) + m.warning(f"Did not find any cache for commit {sha}") else: - m.warning("Did not find cache for commit %s" % sha) + m.warning(f"Did not find cache for commit {sha}") return None async def fetch_dep(self, config, dep, namespace): |