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: diff --git a/howdy/src/pam.py b/howdy/src/pam.py index 5e72f76..262b24c 100644 --- a/howdy/src/pam.py +++ b/howdy/src/pam.py @@ -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()