mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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)
|
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
|
||||||
|
|
Loading…
Reference in a new issue