From 98b197e01b148d913246c8c0912607eb4149d0df Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Sep 2012 11:43:31 +0530 Subject: [PATCH] ... --- src/calibre/gui2/ui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/ui.py b/src/calibre/gui2/ui.py index 2271c82c4f..0767c9a728 100644 --- a/src/calibre/gui2/ui.py +++ b/src/calibre/gui2/ui.py @@ -488,6 +488,11 @@ class Main(MainWindow, MainWindowMixin, DeviceMixin, EmailMixin, # {{{ msg = self.listener.queue.get_nowait() except Empty: return + except: + prints('Received invalid message from another instance') + import traceback + traceback.print_exc() + return if msg.startswith('launched:'): argv = eval(msg[len('launched:'):]) if len(argv) > 1: