mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
add children only if it's not a leaf collection
This commit is contained in:
parent
0576e68c3d
commit
94de9b9be8
1 changed files with 3 additions and 2 deletions
|
@ -80,8 +80,9 @@ def export_storage(config, path, debug=False):
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
remaining_collections.extend(collection.children(
|
if collection.is_node(collection.path):
|
||||||
collection.path))
|
remaining_collections.extend(collection.children(
|
||||||
|
collection.path))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("ERROR: Failed to find child collections of %r: %s" %
|
print("ERROR: Failed to find child collections of %r: %s" %
|
||||||
("/" + collection.path, e))
|
("/" + collection.path, e))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue