fix: auto-fix code issues (cron)

- 修复重复导入/字段
- 修复异常处理 (BaseException -> 具体异常类型)
- 修复PEP8格式问题
- 添加类型注解
- 修复tingwu_client.py缩进错误
This commit is contained in:
OpenClaw Bot
2026-02-27 15:20:03 +08:00
parent 96f08b8bb9
commit 646b64daf7
10 changed files with 27 additions and 51 deletions

View File

@@ -1128,9 +1128,6 @@ class WorkflowManager:
results = {}
completed_tasks = set()
# 构建任务映射 (保留供调试使用)
_ = {t.id: t for t in tasks}
while len(completed_tasks) < len(tasks):
# 找到可以执行的任务(依赖已完成)
ready_tasks = [
@@ -1310,7 +1307,7 @@ class WorkflowManager:
if webhook.template:
try:
message = json.loads(webhook.template.format(**input_data))
except BaseException:
except (json.JSONDecodeError, KeyError, ValueError):
pass
success = await self.notifier.send(webhook, message)