Update safaribooks.py

Reuse global variable
This commit is contained in:
Lorenzo Di Fuccia 2018-12-04 11:36:50 +01:00 • committed by GitHub
commit e735adb92f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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...")