diff --git a/frigate/record.py b/frigate/record.py index 334f9408f..a027eb815 100644 --- a/frigate/record.py +++ b/frigate/record.py @@ -45,9 +45,9 @@ class RecordingMaintainer(threading.Thread): files_in_use = [] for process in psutil.process_iter(): - if process.name() != 'ffmpeg': - continue try: + if process.name() != 'ffmpeg': + continue flist = process.open_files() if flist: for nt in flist: