Catch OSError for deleting classification image

This commit is contained in:
Nicolas Mowen 2025-12-17 08:31:51 -07:00
parent 964e23df6c
commit c18ac05e40

View File

@ -654,5 +654,5 @@ def write_classification_attempt(
if len(files) > max_files:
os.unlink(os.path.join(folder, files[-1]))
except FileNotFoundError:
except (FileNotFoundError, OSError):
pass