mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
fix: 尝试修复在快速启动然后停止时报出大屏错误的问题
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user