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 数组