mirror of
https://github.com/boltgolt/howdy.git
synced 2024-09-19 09:51:19 +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()
|
video_capture.release()
|
||||||
|
|
||||||
# If we've found no faces, try to determine why
|
# 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:
|
if valid_frames == 0:
|
||||||
print(_("Camera saw only black frames - is IR emitter working?"))
|
print(_("Camera saw only black frames - is IR emitter working?"))
|
||||||
elif valid_frames == dark_tries:
|
elif valid_frames == dark_tries:
|
||||||
|
|
Loading…
Reference in a new issue