1
0
Fork 0
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:
Simon Séhier 2019-07-18 13:11:01 +02:00 committed by Unrud
parent 0576e68c3d
commit 94de9b9be8

View file

@ -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))