From 8e8b1e61b8aff1e622f2b6ee4f396ad7308f20d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Regulski?= Date: Fri, 28 May 2021 13:59:28 +0200 Subject: [PATCH] Update safaribooks.py --- safaribooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/safaribooks.py b/safaribooks.py index c3382bb..a7f6fdb 100755 --- a/safaribooks.py +++ b/safaribooks.py @@ -524,7 +524,7 @@ class SafariBooks: 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)