Commit 87247da0 authored by ibuler's avatar ibuler

[Bugfix] 修复获取数量是报错

parent c163427d
......@@ -136,7 +136,10 @@ class TreeService(Tree):
if assets:
return assets
assets = set(self.assets(nid))
try:
children = self.children(nid)
except NodeIDAbsentError:
children = []
for child in children:
assets.update(self.all_assets(child.identifier))
self.all_nodes_assets_map[nid] = assets
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment