Update safaribooks.py
Reuse global variable
This commit is contained in:
parent
df9d7d8d25
commit
e735adb92f
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ class SafariBooks:
|
|||
return new_cred
|
||||
|
||||
def do_login(self, email, password):
|
||||
response = self.requests_provider("https://www.safaribooksonline.com/accounts/login")
|
||||
response = self.requests_provider(self.LOGIN_URL)
|
||||
if response == 0:
|
||||
self.display.exit("Login: unable to reach Safari Books Online. Try again...")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue