Skip to content

Commit

Permalink
fix: Pass pre-commit check
Browse files Browse the repository at this point in the history
  • Loading branch information
malmeloo committed Sep 3, 2024
1 parent 693c7c4 commit 11cb2ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion findmy/reports/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ async def _gsa_authenticate(
msg = "Email verification failed: " + r["Status"].get("em")
raise InvalidCredentialsError(msg)
sp = r.get("sp")
if sp not in ["s2k", "s2k_fo"]:
if not isinstance(sp, str) or sp not in {"s2k", "s2k_fo"}:
msg = f"This implementation only supports s2k and sk2_fo. Server returned {sp}"
raise UnhandledProtocolError(msg)

Expand Down

0 comments on commit 11cb2ac

Please sign in to comment.