From db049fc898353b99e95a4cd1dc37d0b8a277cf35 Mon Sep 17 00:00:00 2001 From: Jonghyun An Date: Sun, 4 Oct 2026 14:49:48 +0900 Subject: [PATCH] ukify: include the invalid value in boolean errors The invalid-boolean error contains a literal f-string prefix and placeholder, hiding the value that failed to parse. Format the message to include the rejected value. (cherry picked from commit aeef38045e74dc585088a64c601166f989705d75) --- src/ukify/ukify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index fa69057a1a..b0b6e56e50 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -1935,7 +1935,7 @@ class ConfigItem: return True if s_l in {'0', 'false', 'no', 'n', 'f', 'off'}: return False - raise ValueError('f"Invalid boolean literal: {s!r}') + raise ValueError(f'Invalid boolean literal: {s!r}') # arguments for argparse.ArgumentParser.add_argument() name: Union[str, tuple[str, str]]