ykman config nfc [OPTION]
on Non-NFC YubiKey 5 series raise not human-readable errors
#542
Labels
ykman config nfc [OPTION]
on Non-NFC YubiKey 5 series raise not human-readable errors
#542
YubiKey Manager (ykman) version: 5.0.1
How was it installed?:
brew install ykman
Operating system and version: ProductName:
YubiKey model and version:
Bug description summary:
Non-NFC Yubikey 5 series raise a raw Python traceback instead of a human-readable error message when running
ykman config nfc [OPTION]
.Steps to reproduce
Run one of the following command with YubiKey 5C (5.4.3) or YubiKey 5C Nano (5.4.3)
ykman config nfc --list
ykman config nfc --enable-all
ykman config nfc --disable-all
Expected result
Show a human-readable error message that NFC is not available with the key such as YubiKey 4 (4.3.5) returns:
Or, some kind of
Actual results and logs
Both
ykman config nfc --list
andykman config nfc [--enable-all / --disable-all]
raise the sameTypeError: unsupported operand type(s) for &: 'NoneType' and 'CAPABILITY'
; however, the raised lines are different:--list
:yubikey-manager/ykman/_cli/config.py
Line 459 in 14ae687
--enable
&--disable
:yubikey-manager/ykman/_cli/config.py
Line 207 in 14ae687
The text was updated successfully, but these errors were encountered: