From 22ee6cbf57bbfeefe74e68ca1827f3e4dba59519 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 7 Nov 2024 11:32:28 +0800 Subject: [PATCH] :bug: Fix recognize error return --- plugins/tools/recognize.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tools/recognize.py b/plugins/tools/recognize.py index af6adef..0de51da 100644 --- a/plugins/tools/recognize.py +++ b/plugins/tools/recognize.py @@ -44,6 +44,7 @@ class RecognizeSystem: data = resp.json() if data.get("code", 0) != 0: logger.error("recognize 解析错误:[%s]%s", data.get("code"), data.get("msg")) + return None logger.info("recognize 解析成功") return data["data"]["validate"] except JSONDecodeError: