Skip to content

Commit c56ad9a

Browse files
committed
[py] Fix default rpId in virtual authenticator
1 parent 5454624 commit c56ad9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/common/virtual_authenticator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def to_dict(self) -> dict[str, Any]:
180180
def from_dict(cls, data: dict[str, Any]) -> "Credential":
181181
_id = urlsafe_b64decode(f"{data['credentialId']}==")
182182
is_resident_credential = bool(data["isResidentCredential"])
183-
rp_id = data["rpId"]
183+
rp_id = data.get("rpId", None)
184184
private_key = urlsafe_b64decode(f"{data['privateKey']}==")
185185
sign_count = int(data["signCount"])
186186
user_handle = urlsafe_b64decode(f"{data['userHandle']}==") if data.get("userHandle", None) else None

0 commit comments

Comments
 (0)