Skip to content

Commit

Permalink
Fix AttributeError: 'generator' object has no attribute 'append' on p…
Browse files Browse the repository at this point in the history
…ython3 when pyscard package is installed
  • Loading branch information
pdecat authored and venth committed Oct 15, 2019
1 parent 27e017b commit 57508a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aws_adfs/_duo_authenticator.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,9 @@ def _verify_authentication_status(duo_host, sid, duo_transaction_id, session,
u2f_challenge = u2f_sign_requests[0]['challenge']
u2f_session_id = u2f_sign_requests[0]['sessionId']

devices = CtapHidDevice.list_devices()
devices = list(CtapHidDevice.list_devices())
if CtapPcscDevice:
devices.append(CtapPcscDevice.list_devices())
devices.extend(list(CtapPcscDevice.list_devices()))

if not devices:
raise click.ClickException("No FIDO U2F authenticator is eligible.")
Expand Down

0 comments on commit 57508a9

Please sign in to comment.