This commit is contained in:
Dain Nilsson 2024-09-06 10:01:23 +02:00
commit 711174158c
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -186,8 +186,13 @@ class Ctap2Node(RpcNode):
try: try:
self.ctap.reset(event=event) self.ctap.reset(event=event)
except CtapError as e: except CtapError as e:
if e.code == CtapError.ERR.USER_ACTION_TIMEOUT: if e.code in (
# Different keys respond with different errors here
CtapError.ERR.USER_ACTION_TIMEOUT,
CtapError.ERR.ACTION_TIMEOUT,
):
raise InactivityException() raise InactivityException()
raise
self._info = self.ctap.get_info() self._info = self.ctap.get_info()
self._token = None self._token = None
return RpcResponse(dict(), ["device_info"]) return RpcResponse(dict(), ["device_info"])