Ignore errors during live refresh of the toc view

This commit is contained in:
Kovid Goyal 2014-05-10 20:56:54 +05:30
parent 50812974e0
commit 99f2fc6879

View File

@ -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