From 9b74bdf3127a50049f054b57e73fea0856bfe389 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Thu, 22 May 2025 11:46:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=AF=B9=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E4=B8=BA=20None=20=E7=9A=84=E5=A4=84=E7=90=86?= =?UTF-8?q?=E4=BB=A5=E5=A2=9E=E5=BC=BA=20main.py=20=E7=9A=84=E5=81=A5?= =?UTF-8?q?=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6cee59f..4beb4f6 100644 --- a/main.py +++ b/main.py @@ -591,7 +591,8 @@ def get_searchInfo(keyword, level, headers, proxy_name, r=2): headers=headers, proxy_name=proxy_name ) - + if response is None: + return None jsondata = response.json() try: errors = jsondata.get("errors") # GraphQL errors 数组