From 94de9b9be8e93eae1b0d85abadc71f909fdc1893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20S=C3=A9hier?= Date: Thu, 18 Jul 2019 13:11:01 +0200 Subject: [PATCH] add children only if it's not a leaf collection --- radicale/__main__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/radicale/__main__.py b/radicale/__main__.py index 4c3c12a2..f59d6a94 100644 --- a/radicale/__main__.py +++ b/radicale/__main__.py @@ -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))