From 83fc0bd8f428e26e2d95a1eedb9d9a167fbb22fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Sun, 10 Apr 2022 12:43:56 +0200 Subject: [PATCH] fix: shutil.move wants str (not Path) for python<3.9 --- bin/background_indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/background_indexer.py b/bin/background_indexer.py index 10ac98b..4f972a7 100755 --- a/bin/background_indexer.py +++ b/bin/background_indexer.py @@ -62,7 +62,7 @@ class BackgroundIndexer(AbstractManager): self.logger.warning(f'Unable to build pickle for {uuid}: {uuid_path.parent.name}') # The capture is not working, moving it away. self.lookyloo.redis.hdel('lookup_dirs', uuid) - shutil.move(uuid_path.parent, (self.discarded_captures_dir / uuid_path.parent.name)) + shutil.move(str(uuid_path.parent), str(self.discarded_captures_dir / uuid_path.parent.name)) def _check_indexes(self): index_redis = self.lookyloo.indexing.redis