mirror of https://github.com/CIRCL/lookyloo
fix: Automatically remove failed runs.
parent
5d66e6b8d0
commit
49654b6b11
|
|
@ -52,6 +52,7 @@ class Lookyloo():
|
||||||
har_files = sorted(report_dir.glob('*.har'))
|
har_files = sorted(report_dir.glob('*.har'))
|
||||||
if not har_files:
|
if not har_files:
|
||||||
self.logger.warning(f'No har files in {report_dir}')
|
self.logger.warning(f'No har files in {report_dir}')
|
||||||
|
report_dir.rmdir()
|
||||||
return
|
return
|
||||||
with (report_dir / 'uuid').open() as f:
|
with (report_dir / 'uuid').open() as f:
|
||||||
uuid = f.read().strip()
|
uuid = f.read().strip()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue