More f-strings

This commit is contained in:
Hugo van Kemenade 2022-04-10 17:56:42 +03:00
parent 74ccda3aff
commit 13994d4b36

View File

@ -225,8 +225,7 @@ def _save_all(im, fp, filename):
or not all(0 <= v < 256 for v in background)
):
raise OSError(
"Background color is not an RGBA tuple clamped to (0-255): %s"
% str(background)
f"Background color is not an RGBA tuple clamped to (0-255): {background}"
)
# Convert to packed uint