Skip to content

Commit 32a9fe1

Browse files
committed
Fix an import error in SK key support when fido2 package isn't present
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!
1 parent ca15e11 commit 32a9fe1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

asyncssh/sk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ def sk_get_resident(application: str, user: Optional[str],
341341
not ctypes.windll.shell32.IsUserAnAdmin()
342342
except (ImportError, OSError, AttributeError): # pragma: no cover
343343
sk_available = False
344+
sk_use_webauthn = False
344345

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

0 commit comments

Comments
 (0)