mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 09:56:23 +03:00
yubikey.py: treat no custom ccid device as success
This commit is contained in:
parent
3ee48e9dcb
commit
2077e9344c
@ -175,7 +175,7 @@ class Controller(object):
|
||||
if dev:
|
||||
return OathContextManager(dev)
|
||||
else:
|
||||
raise ValueError('not_one_device_custom_reader')
|
||||
raise ValueError('no_device_custom_reader')
|
||||
|
||||
return OathContextManager(
|
||||
open_device(TRANSPORT.CCID, serial=self._current_serial))
|
||||
@ -282,7 +282,7 @@ class Controller(object):
|
||||
})
|
||||
return success({'devices': self._devices})
|
||||
else:
|
||||
return failure('not_one_device_custom_reader')
|
||||
return success({'devices': []})
|
||||
else:
|
||||
self._reader_filter = None
|
||||
# Forget current serial and derived key if no descriptors
|
||||
|
Loading…
Reference in New Issue
Block a user