From 4db14b905fed4cb4ac7516e01dc4f91b460543cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=B0=E8=8B=B7=E6=99=B6?= <2749332490@qq.com> Date: Sun, 23 Mar 2025 23:40:06 +0800 Subject: [PATCH] fix: fix error --- astrbot/core/utils/io.py | 3 --- astrbot/core/zip_updator.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/astrbot/core/utils/io.py b/astrbot/core/utils/io.py index 1cdb2a409..7393cb424 100644 --- a/astrbot/core/utils/io.py +++ b/astrbot/core/utils/io.py @@ -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 ) diff --git a/astrbot/core/zip_updator.py b/astrbot/core/zip_updator.py index 4f17b0277..4622b47cd 100644 --- a/astrbot/core/zip_updator.py +++ b/astrbot/core/zip_updator.py @@ -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]])