mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +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()
|
||||
continue
|
||||
try:
|
||||
remaining_collections.extend(collection.children(
|
||||
collection.path))
|
||||
if collection.is_node(collection.path):
|
||||
remaining_collections.extend(collection.children(
|
||||
collection.path))
|
||||
except Exception as e:
|
||||
print("ERROR: Failed to find child collections of %r: %s" %
|
||||
("/" + collection.path, e))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue