From bad51e678dd76d2567c3dd0b9f2065392ae4cf70 Mon Sep 17 00:00:00 2001 From: tonquer Date: Sun, 25 Jun 2023 23:03:27 +0800 Subject: [PATCH] Update qt_owner.py --- src/qt_owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt_owner.py b/src/qt_owner.py index 9ef64c0..2341313 100644 --- a/src/qt_owner.py +++ b/src/qt_owner.py @@ -44,7 +44,7 @@ def SetSubTitle(self, text): def ShowError(self, msg): if isinstance(msg, dict): - if "errorMsg" in msg: + if msg.get('errorMsg'): return MsgLabel.ShowErrorEx(self.owner, str(msg["errorMsg"])) else: return MsgLabel.ShowErrorEx(self.owner, Str.GetStr((msg.get("st"))))