Skip to content

Commit

Permalink
Fix an import error in SK key support when fido2 package isn't present
Browse files Browse the repository at this point in the history
This commit fixes an import error which occurred when the fido2 package
is not installed. Thanks go to GitHub user commonism for reporting this
issue!
  • Loading branch information
ronf committed Nov 23, 2024
1 parent ca15e11 commit 32a9fe1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asyncssh/sk.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ def sk_get_resident(application: str, user: Optional[str],
not ctypes.windll.shell32.IsUserAnAdmin()
except (ImportError, OSError, AttributeError): # pragma: no cover
sk_available = False
sk_use_webauthn = False

def _sk_not_available(*args: object, **kwargs: object) -> NoReturn:
"""Report that security key support is unavailable"""
Expand Down

0 comments on commit 32a9fe1

Please sign in to comment.