fix: fix error
This commit is contained in:
@@ -217,9 +217,6 @@ async def download_dashboard():
|
||||
"""下载管理面板文件"""
|
||||
dashboard_release_url = "https://astrbot-registry.soulter.top/download/astrbot-dashboard/latest/dist.zip"
|
||||
try:
|
||||
ssl_context = ssl.create_default_context(
|
||||
cafile=certifi.where()
|
||||
) # 使用 certifi 提供的 CA 证书
|
||||
await download_file(
|
||||
dashboard_release_url, "data/dashboard.zip", show_progress=True
|
||||
)
|
||||
|
||||
@@ -56,7 +56,7 @@ class RepoZipUpdator:
|
||||
raise Exception(f"请求失败,状态码: {response.status}")
|
||||
result = await response.json()
|
||||
if not result:
|
||||
logger.error("返回空的结果喵♡~")
|
||||
logger.error("返回空的结果")
|
||||
return []
|
||||
# if latest:
|
||||
# ret = self.github_api_release_parser([result[0]])
|
||||
|
||||
Reference in New Issue
Block a user