From: Daan De Meyer Date: Sat, 21 Sep 2024 22:59:17 +0000 (+0200) Subject: Fix invalid format specifiers X-Git-Tag: v25~270^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19216baa5a4a47ba4bb576874f7d0b8fccb5c474;p=thirdparty%2Fmkosi.git Fix invalid format specifiers --- diff --git a/mkosi/config.py b/mkosi/config.py index bb76f01fd..e11ef0106 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -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 diff --git a/mkosi/documentation.py b/mkosi/documentation.py index f1b39d11e..c8c3f04af 100644 --- a/mkosi/documentation.py +++ b/mkosi/documentation.py @@ -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