mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-27 22:48:29 +03:00
Catch OSError for deleting classification image
This commit is contained in:
parent
964e23df6c
commit
c18ac05e40
@ -654,5 +654,5 @@ def write_classification_attempt(
|
|||||||
|
|
||||||
if len(files) > max_files:
|
if len(files) > max_files:
|
||||||
os.unlink(os.path.join(folder, files[-1]))
|
os.unlink(os.path.join(folder, files[-1]))
|
||||||
except FileNotFoundError:
|
except (FileNotFoundError, OSError):
|
||||||
pass
|
pass
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user