From 0ee2adfdf2184d1e934aff2fa500204339ffbea5 Mon Sep 17 00:00:00 2001 From: "pavel.muhortov" Date: Sat, 10 Sep 2022 16:12:00 +0300 Subject: [PATCH] fix 'local variable referenced before assignment' --- ffmpeger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeger.py b/ffmpeger.py index e83af6a..1cd8f93 100644 --- a/ffmpeger.py +++ b/ffmpeger.py @@ -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()