Update astrbot/core/platform/sources/wechatpadpro/wechatpadpro_adapter.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
夏目侧耳
2025-05-15 20:57:22 +08:00
committed by GitHub
parent 946595216a
commit e0ce6d9688

View File

@@ -46,9 +46,7 @@ class WeChatPadProAdapter(Platform):
"""
logger.info("WeChatPadPro 适配器正在启动...")
# 尝试从文件中加载凭据
loaded_credentials = self.load_credentials()
if loaded_credentials:
if loaded_credentials := self.load_credentials():
self.auth_key = loaded_credentials.get("auth_key")
self.wxid = loaded_credentials.get("wxid")