We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b454e commit 5c8fd57Copy full SHA for 5c8fd57
Util/WebRequest.py
@@ -82,5 +82,6 @@ def get(self, url, header=None, retry_time=5, timeout=30,
82
print(e)
83
retry_time -= 1
84
if retry_time <= 0:
85
- return
+ # 多次请求失败时,返回百度页面
86
+ return requests.get("https://www.baidu.com/")
87
time.sleep(retry_interval)
0 commit comments