From 278f7743318121b635a9316059cfabf917372267 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 5 Nov 2024 06:29:28 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tts/piper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tts/piper.py b/src/calibre/gui2/tts/piper.py index 9f10b44868..ec69793340 100644 --- a/src/calibre/gui2/tts/piper.py +++ b/src/calibre/gui2/tts/piper.py @@ -496,7 +496,7 @@ class Piper(TTSBackend): while len(u.left_to_write): written = self.process.write(u.left_to_write) if written < 0: - self._set_error('Failed to write to piper process with error: {self.process.errorString()}') + self._set_error(f'Failed to write to piper process with error: {self.process.errorString()}') break if not u.started and written: u.started = True