Skip to content

Commit

Permalink
backport had introduced another f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 20, 2024
1 parent 3115c69 commit 965adee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xpra/codecs/pillow/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def encode(coding, image, quality, speed, supports_transparency):
bpp = 8
else:
if pixel_format not in ("RGBA", "RGBX", "BGRA", "BGRX", "BGR", "RGB"):
raise ValueError(f"invalid pixel format {pixel_format}")
raise ValueError("invalid pixel format %r" % pixel_format)
pil_import_format = pixel_format.replace("A", "a")
except Exception:
log.error("Error converting source image", exc_info=True)
Expand Down

0 comments on commit 965adee

Please sign in to comment.