catch all psutil errors

This commit is contained in:
Blake Blackshear 2020-12-07 07:16:48 -06:00
parent db7ee6cfb3
commit e147852878

View File

@ -36,9 +36,10 @@ class EventProcessor(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: