Spaces:
Running
Running
github-actions[bot]
commited on
Commit
·
b2e89e3
1
Parent(s):
0d6e70c
Update from GitHub Actions
Browse files
main.py
CHANGED
@@ -412,8 +412,8 @@ async def proxy(request: Request):
|
|
412 |
home_url = f"{parsed_url.scheme}://{parsed_url.netloc}"
|
413 |
|
414 |
# 重试获取主页响应
|
415 |
-
max_retries =
|
416 |
-
retry_delay =
|
417 |
home_response = None
|
418 |
|
419 |
for attempt in range(max_retries):
|
|
|
412 |
home_url = f"{parsed_url.scheme}://{parsed_url.netloc}"
|
413 |
|
414 |
# 重试获取主页响应
|
415 |
+
max_retries = 10
|
416 |
+
retry_delay = 2 # 重试间隔秒数
|
417 |
home_response = None
|
418 |
|
419 |
for attempt in range(max_retries):
|