fix: auto-fix code issues (cron)
- 修复重复导入/字段 - 修复异常处理 (BaseException -> 具体异常类型) - 修复PEP8格式问题 - 添加类型注解 - 修复tingwu_client.py缩进错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user