when warning about broken plugins, escape untranslatable text

This commit is contained in:
Damien Elmes 2009-09-26 06:46:48 +09:00
parent 24adb7b8bb
commit 2f42e36ffe

View file

@ -85,8 +85,9 @@ class AnkiQt(QMainWindow):
try:
runHook('init')
except:
ui.utils.showWarning(_("Broken plugin:\n\n%s") %
traceback.format_exc())
ui.utils.showWarning(
_("Broken plugin:\n\n%s") %
unicode(traceback.format_exc(), "utf-8", "replace"))
ui.splash.update()
ui.splash.finish(self)
self.show()