fix 'local variable referenced before assignment'

This commit is contained in:
pavel.muhortov 2022-09-10 16:12:00 +03:00
parent de50db59d5
commit 0ee2adfdf2

View File

@ -33,6 +33,7 @@ class FFmpeg:
print('Process already exist, exit...')
else:
with Popen(process, stdout=PIPE, stderr=STDOUT) as proc:
que = None
if watchdog:
que = Queue()
Process(target=cls._watchdog, args=(proc.pid, sec, que,), daemon=True).start()