aboutsummaryrefslogtreecommitdiff
path: root/fprintd_tk_lib.py
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-09-24 11:20:38 -0400
committerB. Stack <bgstack15@gmail.com>2024-09-24 11:20:38 -0400
commit1046b013a0deb2d2a212106b0d9324ebea3b7b9b (patch)
tree1d8290838f565bd6c8b8f938b91b9896629fb8be /fprintd_tk_lib.py
parentinitial protection against empty response from get_enrolled_fingers (diff)
downloadfprintd-tk-1046b013a0deb2d2a212106b0d9324ebea3b7b9b.tar.gz
fprintd-tk-1046b013a0deb2d2a212106b0d9324ebea3b7b9b.tar.bz2
fprintd-tk-1046b013a0deb2d2a212106b0d9324ebea3b7b9b.zip
flash finger that completed an action
Diffstat (limited to 'fprintd_tk_lib.py')
-rw-r--r--fprintd_tk_lib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fprintd_tk_lib.py b/fprintd_tk_lib.py
index bd8b145..137a606 100644
--- a/fprintd_tk_lib.py
+++ b/fprintd_tk_lib.py
@@ -13,7 +13,8 @@ fre = re.compile ("^.* - #[0-9]+: ([^ ]+)$")
prevent_success_messages = [
"no-match",
"failed to claim",
- "not enrolled for user"
+ "not enrolled for user",
+ "enroll-duplicate"
]
def get_enrolled_fingers(user = None):
@@ -35,7 +36,6 @@ def get_enrolled_fingers(user = None):
#print(f"Got {fre.match(line).groups()[0]}")
enrolled_fingers.append(fre.match(line).groups()[0].strip())
elif re.match("^.*No devices available.*", line):
- # WORKHERE: we should rerun the program in a second or two
return []
else:
#print(f"Not-matching: {line}",end="")
bgstack15