Bug fix: Save fingerprint.

Bug fix: Show error whey device isn't plugged.
This commit is contained in:
2021-12-08 16:14:57 +01:00
parent 62ed8744f2
commit 71b5c01adc
3 changed files with 10 additions and 2 deletions
+2
View File
@@ -35,6 +35,8 @@ def enroll(sessionId, data):
devices = ctx.get_devices()
if (len(devices) == 0):
print("There is no attached device.")
sio.emit('fprint-enroll-error', "There is no attached device.");
return;
else:
device = devices[0]
if (not device):