mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: Another fix
This commit is contained in:
parent
92e5dcb078
commit
e1e3f41065
@ -626,6 +626,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
|
|||||||
msg = self.listener.queue.get_nowait()
|
msg = self.listener.queue.get_nowait()
|
||||||
except Empty:
|
except Empty:
|
||||||
return
|
return
|
||||||
|
if isinstance(msg, bytes):
|
||||||
|
msg = msg.decode('utf-8', 'replace')
|
||||||
if msg.startswith('launched:'):
|
if msg.startswith('launched:'):
|
||||||
import json
|
import json
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user