From c18ac05e40709b5fc6e2c1671aa50f4323c7919a Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 17 Dec 2025 08:31:51 -0700 Subject: [PATCH] Catch OSError for deleting classification image --- frigate/data_processing/real_time/custom_classification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/data_processing/real_time/custom_classification.py b/frigate/data_processing/real_time/custom_classification.py index a2f88ee93..ede21b404 100644 --- a/frigate/data_processing/real_time/custom_classification.py +++ b/frigate/data_processing/real_time/custom_classification.py @@ -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