This commit is contained in:
Kovid Goyal 2012-09-06 11:43:31 +05:30
parent 4fa3eed8f6
commit 98b197e01b

View File

@ -488,6 +488,11 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{
msg = self.listener.queue.get_nowait() msg = self.listener.queue.get_nowait()
except Empty: except Empty:
return return
except:
prints('Received invalid message from another instance')
import traceback
traceback.print_exc()
return
if msg.startswith('launched:'): if msg.startswith('launched:'):
argv = eval(msg[len('launched:'):]) argv = eval(msg[len('launched:'):])
if len(argv) > 1: if len(argv) > 1: