We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e95b00 commit 10bf424Copy full SHA for 10bf424
tools/testing/tests/tester.py
@@ -73,14 +73,12 @@ def find_device(self, nfcInterfaceOnly=False):
73
dev = next(CtapHidDevice.list_devices(), None)
74
75
if not dev:
76
- try:
77
- from fido2.pcsc import CtapPcscDevice
+ from fido2.pcsc import CtapPcscDevice
+
78
+ print("--- NFC ---")
79
+ print(list(CtapPcscDevice.list_devices()))
80
+ dev = next(CtapPcscDevice.list_devices(), None)
81
- print("--- NFC ---")
- print(list(CtapPcscDevice.list_devices()))
- dev = next(CtapPcscDevice.list_devices(), None)
82
- except (ModuleNotFoundError, ImportError):
83
- print("One of NFC library is not installed properly.")
84
85
raise RuntimeError("No FIDO device found")
86
self.dev = dev
0 commit comments