From 84ad5ddc52b9848a17e884c0630e0fae2cd83caf Mon Sep 17 00:00:00 2001 From: moonburnt Date: Sat, 18 Sep 2021 11:45:35 +0300 Subject: [PATCH] fix: removed pointless check "if not" will already trigger on None, no need to specifically mention it --- howdy/src/cli/add.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/howdy/src/cli/add.py b/howdy/src/cli/add.py index 1cab2e9..8e117f4 100644 --- a/howdy/src/cli/add.py +++ b/howdy/src/cli/add.py @@ -176,7 +176,7 @@ while frames < 60: video_capture.release() # If we've found no faces, try to determine why -if face_locations is None or not face_locations: +if not face_locations: if valid_frames == 0: print(_("Camera saw only black frames - is IR emitter working?")) elif valid_frames == dark_tries: