Skip to content

Commit

Permalink
fix AssertionError
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Mar 27, 2024
1 parent ce363e2 commit aa7fc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pronotepy/ent/generic_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def _sso_redirect(
soup = BeautifulSoup(response.text, "html.parser")
saml = soup.find("input", {"name": saml_type})

assert isinstance(saml, Tag)

if not saml:
return None

assert isinstance(saml, Tag)

payload = {saml_type: saml.get("value")}

relay_state = soup.find("input", {"name": "RelayState"})
Expand Down

0 comments on commit aa7fc24

Please sign in to comment.