mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 05:34:36 +03:00
More f-strings
This commit is contained in:
parent
74ccda3aff
commit
13994d4b36
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user