fix: fix error

This commit is contained in:
冰苷晶
2025-03-23 23:40:06 +08:00
parent b669b31451
commit 4db14b905f
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -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
)
+1 -1
View File
@@ -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]])