We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb83a0e commit 119b92fCopy full SHA for 119b92f
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