From 50406a921c8f09f3daa5e677037de460de44aca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 19 Sep 2023 12:14:00 +0200 Subject: [PATCH] fix: Attempt to avoid listing non-existing directories --- bin/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/archiver.py b/bin/archiver.py index 50b440ac..5b9a86f8 100755 --- a/bin/archiver.py +++ b/bin/archiver.py @@ -61,7 +61,7 @@ class Archiver(AbstractManager): self.logger.debug(f'Updating index for {root_dir}') index_file = root_dir / 'index' - existing_captures_names = {existing_capture.name for existing_capture in index_file.parent.iterdir() + existing_captures_names = {existing_capture.name for existing_capture in root_dir.iterdir() if existing_capture.name != 'index'} if index_file.exists(): # Skip index if the directory has been archived.