0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00

Merge deleted branch 'moonburnt-master' into beta

This commit is contained in:
boltgolt 2022-04-18 13:21:23 +02:00
commit 7cf31fe755
No known key found for this signature in database
GPG key ID: BECEC9937E1AAE26
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -15,7 +15,7 @@ config.read(os.path.dirname(os.path.abspath(__file__)) + "/config.ini")
def doAuth(pamh):
"""Starts authentication in a seperate process"""
"""Starts authentication in a separate process"""
# Abort if Howdy is disabled
if config.getboolean("core", "disabled"):
@ -103,7 +103,7 @@ def doAuth(pamh):
syslog.closelog()
return pamh.PAM_SUCCESS
# Otherwise, we can't discribe what happend but it wasn't successful
# Otherwise, we can't describe what happened but it wasn't successful
pamh.conversation(pamh.Message(pamh.PAM_ERROR_MSG, "Unknown error: " + str(status)))
syslog.syslog(syslog.LOG_INFO, "Failure, unknown error" + str(status))
syslog.closelog()