From 421882c0e87bdc7bf516c2a6e07c60d3713bd6ef Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Fri, 4 Jan 2013 13:28:20 +0000 Subject: [PATCH] 6270: Attempting to accidentally open Book Manager raises a Unhandled exception svn: r20971 --- gramps/gui/viewmanager.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gramps/gui/viewmanager.py b/gramps/gui/viewmanager.py index b3f236038..e1ea4c3fa 100644 --- a/gramps/gui/viewmanager.py +++ b/gramps/gui/viewmanager.py @@ -880,7 +880,10 @@ class ViewManager(CLIManager): """ Run a book. """ - BookSelector(self.dbstate, self.uistate) + try: + BookSelector(self.dbstate, self.uistate) + except WindowActiveError: + return def __keypress(self, action): """