]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Fix invalid format specifiers
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 21 Sep 2024 22:59:17 +0000 (00:59 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 22 Sep 2024 10:20:24 +0000 (12:20 +0200)
mkosi/config.py
mkosi/documentation.py

index bb76f01fd6725dff0b1a972d41051209036b1ca8..e11ef0106d0bfb46ddbd1ad00ac55d0cd9c74c83 100644 (file)
@@ -4678,7 +4678,7 @@ def json_type_transformer(refcls: Union[type[Args], type[Config]]) -> Callable[[
                 return transformer(val, fieldtype.type)
             except (ValueError, IndexError, AssertionError) as e:
                 raise ValueError(
-                    f"Unable to parse {val:r} for attribute {key:r} for {refcls.__name__}"
+                    f"Unable to parse {val!r} for attribute {key!r} for {refcls.__name__}"
                 ) from e
 
         return val
index f1b39d11e44c407047875080b35f1fdeb0986855..c8c3f04af7d006bdb2218b4038b0c34f95868b46 100644 (file)
@@ -40,5 +40,5 @@ def show_docs(manual: str, formats: list[DocFormat], *, resources: Path, pager:
         except (FileNotFoundError, subprocess.CalledProcessError) as e:
             if not formats:
                 if isinstance(e, FileNotFoundError):
-                    die("The mkosi package does not contain the man page {manual:r}.")
+                    die("The mkosi package does not contain the man page {manual!r}.")
                 raise e