mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add hack to avoid matplotlib errors on osx
This commit is contained in:
parent
504749b741
commit
97784e220d
1 changed files with 5 additions and 1 deletions
|
@ -118,6 +118,9 @@ class AnkiQt(QMainWindow):
|
|||
self.timer.setInterval(interval)
|
||||
|
||||
def onTimeout(self):
|
||||
if "font_manager.py" in self.pool:
|
||||
# hack for matplotlib errors on osx
|
||||
self.pool = ""
|
||||
stdText = _("""\
|
||||
An error occurred. Please copy the following into a bug report.\n\n""")
|
||||
pluginText = _("""\
|
||||
|
@ -127,7 +130,8 @@ Please do not file a bug report with Anki.\n\n""")
|
|||
txt = pluginText
|
||||
else:
|
||||
txt = stdText
|
||||
ui.utils.showText(txt + self.pool[0:10000])
|
||||
if self.pool:
|
||||
ui.utils.showText(txt + self.pool[0:10000])
|
||||
self.pool = ""
|
||||
self.timer = None
|
||||
pipe = ErrorPipe(self)
|
||||
|
|
Loading…
Reference in a new issue