1
mirror of https://github.com/Yubico/python-fido2 synced 2024-09-26 03:51:03 +02:00

Minor fixes.

This commit is contained in:
Dain Nilsson 2020-09-29 13:04:56 +02:00
parent a862fdaa93
commit 95792be016
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8
3 changed files with 4 additions and 2 deletions

View File

@ -38,4 +38,4 @@ if six.PY2:
abc.ABC = ABC
__version__ = "0.8.2-dev0"
__version__ = "0.9.0-dev0"

View File

@ -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)

View File

@ -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