mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 16:25:04 +02:00
...
This commit is contained in:
parent
042048e93a
commit
052ed1010a
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def get_browser(self):
|
|||
br['password'] = self.password
|
||||
res = br.submit()
|
||||
raw = res.read()
|
||||
if '>Log Out<' not in raw:
|
||||
if 'Welcome,' not in raw and '>Logout<' not in raw and '>Log Out<' not in raw:
|
||||
raise ValueError('Failed to log in to wsj.com, check your '
|
||||
'username and password')
|
||||
return br
|
||||
|
|
|
|||
Loading…
Reference in a new issue