Skip to content

Commit

Permalink
Fix formatting (Black).
Browse files Browse the repository at this point in the history
  • Loading branch information
dainnilsson committed Nov 9, 2021
1 parent e42eb22 commit 4f4c48b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fido2/hid/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4f4c48b

Please sign in to comment.