add hack to avoid matplotlib errors on osx

This commit is contained in:
Damien Elmes 2008-12-23 15:52:53 +09:00
parent 504749b741
commit 97784e220d

View file

@ -118,6 +118,9 @@ class AnkiQt(QMainWindow):
self.timer.setInterval(interval) self.timer.setInterval(interval)
def onTimeout(self): def onTimeout(self):
if "font_manager.py" in self.pool:
# hack for matplotlib errors on osx
self.pool = ""
stdText = _("""\ stdText = _("""\
An error occurred. Please copy the following into a bug report.\n\n""") An error occurred. Please copy the following into a bug report.\n\n""")
pluginText = _("""\ pluginText = _("""\
@ -127,6 +130,7 @@ Please do not file a bug report with Anki.\n\n""")
txt = pluginText txt = pluginText
else: else:
txt = stdText txt = stdText
if self.pool:
ui.utils.showText(txt + self.pool[0:10000]) ui.utils.showText(txt + self.pool[0:10000])
self.pool = "" self.pool = ""
self.timer = None self.timer = None