ソースを参照

identity check is correct way to check for None

Patrick 3 年 前
コミット
7ad8b8298d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      frigate/video.py

+ 1 - 1
frigate/video.py

@@ -233,7 +233,7 @@ class CameraWatchdog(threading.Thread):
 
             for p in self.ffmpeg_other_processes:
                 poll = p["process"].poll()
-                if poll == None:
+                if poll is None:
                     continue
                 p["logpipe"].dump()
                 p["process"] = start_or_restart_ffmpeg(