Fix running 'cleanup' method on extractors that fail to start

This commit is contained in:
Patrick Robertson
2025-03-26 22:52:52 +04:00
parent 580de88366
commit 17d2d14680
5 changed files with 41 additions and 11 deletions

View File

@@ -1,6 +1,11 @@
from auto_archiver.core import Extractor
from loguru import logger
class ExampleExtractor(Extractor):
def download(self, item):
print("download")
logger.info("download")
def cleanup(self):
logger.info("cleanup")