chg: Do not try to build a tree if there are no HAR files

pull/526/head
Raphaël Vinot 2022-09-26 15:59:04 +02:00
parent 8d7e0ecf15
commit edd8d786d3
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class BackgroundIndexer(AbstractManager):
def _build_missing_pickles(self):
for uuid_path in sorted(self.lookyloo.capture_dir.glob('**/uuid'), reverse=True):
if (uuid_path.parent / 'tree.pickle').exists():
if (uuid_path.parent / 'tree.pickle').exists() or not list(uuid_path.parent.rglob('*.har')):
continue
lock_file = uuid_path.parent / 'lock'
if lock_file.exists():