Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions ledgerblue/comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,16 +300,13 @@ def getDongle(debug=False):
return DongleBLE(debug)
elif PCSC is not None:
# Use the first pcsc reader with a card inserted
connection = None
for reader in readers():
try:
connection = reader.createConnection()
connection.connect()
return DongleSmartcard(connection, debug)
except Exception:
connection = None
pass
if connection is not None:
return DongleSmartcard(connection, debug)
else:
# USB HID by default
dev = None
Expand Down