mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
d2158d75b9
commit
bd960fa84d
@ -302,9 +302,9 @@ class WinSpeech:
|
|||||||
def _get_messages(self, worker, queue):
|
def _get_messages(self, worker, queue):
|
||||||
try:
|
try:
|
||||||
for line in worker.stdout:
|
for line in worker.stdout:
|
||||||
queue.put(line.decode('utf-8'))
|
queue.put(line.decode('utf-8', 'replace'))
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
line = ('0 error ' + json.dumps({"msg": "Failed to read from worker", "error": str(e), "file": "winspeech.py", "line": 0}))
|
line = '0 error ' + json.dumps({"msg": "Failed to read from worker", "error": str(e), "file": "winspeech.py", "line": 0})
|
||||||
queue.put(line)
|
queue.put(line)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user