This commit is contained in:
Kovid Goyal 2012-01-13 12:58:16 +05:30
parent df3ea0174b
commit 853dec6689

View File

@ -29,7 +29,8 @@ def login_to_google(username, password):
if b'<title>Account overview - Account Settings</title>' not in raw: if b'<title>Account overview - Account Settings</title>' not in raw:
raise ValueError(('Failed to login to google with credentials: %s %s' raise ValueError(('Failed to login to google with credentials: %s %s'
'\nGoogle sometimes requires verification when logging in from a ' '\nGoogle sometimes requires verification when logging in from a '
'new IP address. Use lynx to login and supply the verification.') 'new IP address. Use lynx to login and supply the verification, '
'at: lynx -accept_all_cookies https://accounts.google.com/ServiceLogin?service=code')
%(username, password)) %(username, password))
return br return br