py3: Another fix

This commit is contained in:
Kovid Goyal 2019-08-10 13:29:58 +05:30
parent 92e5dcb078
commit e1e3f41065
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -626,6 +626,8 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
msg = self.listener.queue.get_nowait()
except Empty:
return
if isinstance(msg, bytes):
msg = msg.decode('utf-8', 'replace')
if msg.startswith('launched:'):
import json
try: