@hupan56/wlkj 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -294,6 +294,11 @@ def run_task_hooks(
|
|
|
294
294
|
except ImportError:
|
|
295
295
|
# 没有 PyYAML, 用简单解析
|
|
296
296
|
config = _simple_yaml_parse(config_path)
|
|
297
|
+
except Exception as e:
|
|
298
|
+
# config.yaml 语法错误等: 不阻塞任务操作, 只是跳过 hooks
|
|
299
|
+
# (用户可能手编 config.yaml 引入了语法错误, 不该让整个任务系统崩溃)
|
|
300
|
+
print(f"Warning: .qoder/config.yaml 解析失败, 跳过 hooks ({type(e).__name__})", file=sys.stderr)
|
|
301
|
+
return
|
|
297
302
|
|
|
298
303
|
if not config:
|
|
299
304
|
return
|