From b3b52848c2bbcedc71c6607a0d5d08591f033d74 Mon Sep 17 00:00:00 2001 From: z3st Date: Wed, 22 Jul 2026 01:39:33 +0800 Subject: [PATCH] fix: verifyResult can be None, ensure dict return --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 8b1f3dc..88739eb 100644 --- a/main.py +++ b/main.py @@ -195,7 +195,8 @@ def check_platform_verify(model_id: str) -> dict: resp = requests.get(url, headers=headers, params={'modelId': model_id}, timeout=10) data = resp.json() if data.get('code') == 0: - return data.get('data', {}).get('verifyResult', {}) + result = data.get('data', {}).get('verifyResult', {}) + return result if isinstance(result, dict) else {} except Exception: pass return {}