Skip to content

Commit

Permalink
fix(headless): Handle fido2 ValueError on bad data
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Nov 8, 2024
1 parent 2a8fa10 commit b1bd172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/mfa/webauthn/internal/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_authenticator_by_credential_id(
def parse_authentication_response(response: Any) -> AuthenticationResponse:
try:
return AuthenticationResponse.from_dict(response)
except TypeError:
except (TypeError, ValueError):
raise get_adapter().validation_error("incorrect_code")


Expand Down

0 comments on commit b1bd172

Please sign in to comment.