fix 'local variable referenced before assignment'
This commit is contained in:
parent
de50db59d5
commit
0ee2adfdf2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user