From 1fcd4cfa3f48a5e29ad5d74b32d83bd94aed6e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 19 Sep 2023 12:51:34 +0200 Subject: [PATCH] fix: Make sure we only get valid dirs out of the month directory --- bin/archiver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/archiver.py b/bin/archiver.py index 5b9a86f..ebc5ead 100755 --- a/bin/archiver.py +++ b/bin/archiver.py @@ -62,7 +62,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 root_dir.iterdir() - if existing_capture.name != 'index'} + if existing_capture.is_dir()} if index_file.exists(): # Skip index if the directory has been archived. try: