mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 20:01:04 +00:00
Refactor: Translate remaining English logs and comments to Chinese
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ class ConfigManager:
|
||||
default_path = data_path / "plugin_data" / plugin_name / "reports"
|
||||
return self.config.get("pdf_output_dir", str(default_path))
|
||||
except Exception:
|
||||
# Fallback for older versions or import errors
|
||||
# 针对旧版本或导入错误的后备方案
|
||||
return self.config.get(
|
||||
"pdf_output_dir",
|
||||
"data/plugins/astrbot_plugin_qq_group_daily_analysis/reports",
|
||||
|
||||
@@ -50,7 +50,7 @@ class PlatformAdapterFactory:
|
||||
except Exception:
|
||||
# 记录异常,但不崩溃
|
||||
import logging
|
||||
logging.getLogger(__name__).error(f"Error creating adapter for {platform_name}", exc_info=True)
|
||||
logging.getLogger(__name__).error(f"为 {platform_name} 创建适配器时出错", exc_info=True)
|
||||
return None
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user