mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
fix: 尝试修复在快速启动然后停止时报出大屏错误的问题
This commit is contained in:
parent
aeb07c1b73
commit
aa35ea98a3
@ -28,7 +28,11 @@ async def get_response(retry = 0):
|
||||
req = await Httpx.AsyncRequest('https://mirror.ghproxy.com/' + baseurl)
|
||||
else:
|
||||
req = await Httpx.AsyncRequest(baseurl)
|
||||
except:
|
||||
except Exception as e:
|
||||
if (isinstance(e, RuntimeError)):
|
||||
if ('Session is closed' in str(e)):
|
||||
logger.error('脚本更新失败,clientSession已被关闭')
|
||||
return
|
||||
return await get_response(retry + 1)
|
||||
return req
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user