Skip to content

Commit

Permalink
Update safaribooks.py
Browse files Browse the repository at this point in the history
  • Loading branch information
regulskimichal committed May 28, 2021
1 parent c872f22 commit 8e8b1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion safaribooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def check_login(self):
elif response.status_code != 200:
self.display.exit("Authentication issue: unable to access profile page.")

elif "user_type\":\"Expired" in response.text:
elif "user_type\":\"Expired\"" in response.text:
self.display.exit("Authentication issue: account subscription expired.")

self.display.info("Successfully authenticated.", state=True)
Expand Down

0 comments on commit 8e8b1e6

Please sign in to comment.