mirror of https://github.com/Yubico/python-fido2
Fix formatting (Black).
This commit is contained in:
parent
e42eb2206c
commit
4f4c48b9d5
|
@ -63,7 +63,9 @@ def get_descriptor(path):
|
|||
try:
|
||||
buf = array("B", [0] * 64)
|
||||
length = fcntl.ioctl(f, HIDIOCGRAWUNIQ, buf, True)
|
||||
serial = bytearray(buf[: (length - 1)]).decode("utf-8") if length > 1 else None
|
||||
serial = (
|
||||
bytearray(buf[: (length - 1)]).decode("utf-8") if length > 1 else None
|
||||
)
|
||||
except OSError:
|
||||
serial = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue