We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb83a0e + 119b92f commit 8607c1dCopy full SHA for 8607c1d
1 file changed
ledgerblue/comm.py
@@ -300,16 +300,13 @@ def getDongle(debug=False):
300
return DongleBLE(debug)
301
elif PCSC is not None:
302
# Use the first pcsc reader with a card inserted
303
- connection = None
304
for reader in readers():
305
try:
306
connection = reader.createConnection()
307
connection.connect()
+ return DongleSmartcard(connection, debug)
308
except Exception:
309
310
pass
311
- if connection is not None:
312
- return DongleSmartcard(connection, debug)
313
else:
314
# USB HID by default
315
dev = None
0 commit comments