test: cover missing-id and non-list roots; drop unreachable empty-nodes guard
This commit is contained in:
@@ -66,8 +66,6 @@ def load_tree_nodes(store_dir: Path, video_id: str) -> dict[str, Any]:
|
||||
for root in roots:
|
||||
_walk(root, 1)
|
||||
|
||||
if not nodes:
|
||||
raise ValueError(f"展平后 nodes 为空: {tree_path}")
|
||||
return {"nodes": nodes}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user