[config] Fix unfilled placeholder in dimensions() error message (#15498)

This commit is contained in:
Jonathan Swoboda
2026-04-06 20:30:36 -04:00
committed by GitHub
parent b155c13117
commit 094e0440c6

View File

@@ -1667,7 +1667,7 @@ def dimensions(value):
match = re.match(r"\s*([0-9]+)\s*[xX]\s*([0-9]+)\s*", value)
if not match:
raise Invalid(
"Invalid value '{}' for dimensions. Only WIDTHxHEIGHT is allowed."
f"Invalid value '{value}' for dimensions. Only WIDTHxHEIGHT is allowed."
)
return dimensions([match.group(1), match.group(2)])