From 965adeebcaa83dde06f989bc5dcc7a9df5312186 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 20 Dec 2024 22:24:38 +0700 Subject: [PATCH] backport had introduced another f-string --- xpra/codecs/pillow/encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/codecs/pillow/encoder.py b/xpra/codecs/pillow/encoder.py index 9ac1deb5d7..a7d35a500e 100644 --- a/xpra/codecs/pillow/encoder.py +++ b/xpra/codecs/pillow/encoder.py @@ -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)