mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-12 09:41:18 +02:00
fix: removed pointless check
"if not" will already trigger on None, no need to specifically mention it
This commit is contained in:
parent
8bedd5f2c0
commit
84ad5ddc52
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue