Skip to content

Commit 10bf424

Browse files
committedJul 9, 2019
fail with more import related info
1 parent 9e95b00 commit 10bf424

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed
 

‎tools/testing/tests/tester.py

+5-7
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,12 @@ def find_device(self, nfcInterfaceOnly=False):
7373
dev = next(CtapHidDevice.list_devices(), None)
7474

7575
if not dev:
76-
try:
77-
from fido2.pcsc import CtapPcscDevice
76+
from fido2.pcsc import CtapPcscDevice
77+
78+
print("--- NFC ---")
79+
print(list(CtapPcscDevice.list_devices()))
80+
dev = next(CtapPcscDevice.list_devices(), None)
7881

79-
print("--- NFC ---")
80-
print(list(CtapPcscDevice.list_devices()))
81-
dev = next(CtapPcscDevice.list_devices(), None)
82-
except (ModuleNotFoundError, ImportError):
83-
print("One of NFC library is not installed properly.")
8482
if not dev:
8583
raise RuntimeError("No FIDO device found")
8684
self.dev = dev

0 commit comments

Comments
 (0)
Please sign in to comment.