From 2e70c56248b4a192307301fa0da738d8099d5b3c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Feb 2019 14:16:35 +1000 Subject: [PATCH] fix regression in showInfo() et al --- aqt/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/utils.py b/aqt/utils.py index 6262c7dd1..12d14c999 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -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)