调整代码

This commit is contained in:
liuwei
2025-04-27 09:56:26 +08:00
parent 2a6b94980a
commit 126f58e315
5 changed files with 4 additions and 135 deletions

View File

@@ -39,6 +39,9 @@ class Robot(Job):
def __init__(self, config: Config) -> None:
self.client = gewe_client.client
if not self.client:
logging.getLogger("Robot").error("gewe_client.client 不存在Robot 初始化失败,程序退出。")
return
self.config = config
self.app_id = gewe_client.app_id
self.LOG = logging.getLogger("Robot")