mirror of
https://github.com/Yubico/python-fido2
synced 2024-09-26 03:51:03 +02:00
Minor fixes.
This commit is contained in:
parent
a862fdaa93
commit
95792be016
@ -38,4 +38,4 @@ if six.PY2:
|
||||
abc.ABC = ABC
|
||||
|
||||
|
||||
__version__ = "0.8.2-dev0"
|
||||
__version__ = "0.9.0-dev0"
|
||||
|
@ -48,7 +48,7 @@ def get_descriptor(path):
|
||||
# Read VID, PID
|
||||
buf = bytearray(4 + 2 + 2)
|
||||
fcntl.ioctl(f, GET_INFO, buf, True)
|
||||
_, vid, pid = struct.unpack(">IHH", buf)
|
||||
_, vid, pid = struct.unpack("<IHH", buf)
|
||||
|
||||
# Read report descriptor
|
||||
buf = bytearray(4)
|
||||
|
@ -334,6 +334,8 @@ def list_descriptors():
|
||||
|
||||
try:
|
||||
descriptors.append(get_descriptor(path))
|
||||
except ValueError:
|
||||
continue
|
||||
except Exception as e:
|
||||
logger.debug("Failed opening HID device", exc_info=e)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user