mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 18:59:01 +03:00
Catch OSError for deleting classification image
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user