Skip to content

Commit c04c129

Browse files
committed
Use f-string to format log.warning message
The % format in this warning message was broken, and printed "%s" instead of a path. This may be something to do with our interception and coloring of warning messages, but I can't be sure. The simplest fix is to use an f-string (as we do for other warnings), because that results in the string being formatted before it is passed to logging. Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 180cef8 commit c04c129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebasin/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def load_database(dbpath, rootdir):
499499
# Skip files that don't exist.
500500
# (e.g., because they're generated by running make)
501501
if not os.path.exists(path):
502-
log.warning("Ignoring non-existent file: %s", path)
502+
log.warning(f"Ignoring non-existent file: {path}")
503503
continue
504504

505505
# Parse command-line arguments, emulating compiler-specific behavior.

0 commit comments

Comments
 (0)