Fix conditional statement in Job class when clearing old cache

This commit is contained in:
Théophile Diot 2024-03-15 15:36:44 +00:00
parent f53345282c
commit 8c23bc4a75
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -88,7 +88,7 @@ class Job:
self.logger.error(f"Exception while restoring cache file {job_cache_file['file_name']} :\n{e}")
ret = False
if not manual:
if not manual and self.job_path.is_dir():
for file in self.job_path.glob("**/*"):
skipped = False
for ignored_dir in ignored_dirs: