mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
3725d5a4c0
commit
278f774331
@ -496,7 +496,7 @@ class Piper(TTSBackend):
|
|||||||
while len(u.left_to_write):
|
while len(u.left_to_write):
|
||||||
written = self.process.write(u.left_to_write)
|
written = self.process.write(u.left_to_write)
|
||||||
if written < 0:
|
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
|
break
|
||||||
if not u.started and written:
|
if not u.started and written:
|
||||||
u.started = True
|
u.started = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user