diff --git a/src/utils/__init__.py b/src/utils/__init__.py index c8312ead..6792ee1f 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -92,7 +92,7 @@ def parse_number(s): unit = s[-1].lower() number = s[:-1] if not number.isdigit(): - raise ValueError("Invalid format '%s' passed to parse_number") + raise ValueError("Invalid format '%s' passed to parse_number" % number) number = int(number) if unit == "k": @@ -102,7 +102,7 @@ def parse_number(s): elif unit == "b": number *= 1_000_000_000 else: - raise ValueError("Unknown unit '%s' given to parse_number") + raise ValueError("Unknown unit '%s' given to parse_number" % unit) return str(number) IS_TRUE = ["true", "yes", "on", "y"]