0
0
Fork 0
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:
moonburnt 2021-09-18 11:45:35 +03:00 committed by boltgolt
parent 8bedd5f2c0
commit 84ad5ddc52
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26

View file

@ -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: