fix regression in showInfo() et al

This commit is contained in:
Damien Elmes 2019-02-27 14:16:35 +10:00
parent 66cbc87580
commit 2e70c56248

View File

@ -42,7 +42,7 @@ def showInfo(text, parent=False, help="", type="info", title="Anki", textFormat=
mb.setTextFormat(Qt.PlainText)
elif textFormat == "rich":
mb.setTextFormat(Qt.RichText)
else:
elif textFormat is not None:
raise Exception("unexpected textFormat type")
mb.setText(text)
mb.setIcon(icon)