From 99f2fc687951dcb1b770df2f4b4e8dd75162cdec Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 10 May 2014 20:56:54 +0530 Subject: [PATCH] Ignore errors during live refresh of the toc view --- src/calibre/gui2/tweak_book/toc.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/toc.py b/src/calibre/gui2/tweak_book/toc.py index dcebcc6ec5..1a8e91f02b 100644 --- a/src/calibre/gui2/tweak_book/toc.py +++ b/src/calibre/gui2/tweak_book/toc.py @@ -147,7 +147,12 @@ class TOCViewer(QWidget): def auto_refresh(self): if self.isVisible(): - self.refresh() + try: + self.refresh() + except Exception: + # ignore errors during live refresh of the toc + import traceback + traceback.print_exc() def refresh(self): self.refresh_requested.emit() # Give boss a chance to commit dirty editors to the container