mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-30 20:45:05 +01:00
Merge branch 'master' of https://github.com/jn8029/calibre
This commit is contained in:
commit
94c6624958
2 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ def get_browser(self, *a, **kw):
|
|||
self.log('Performing login callback...')
|
||||
res = br.submit()
|
||||
self.wsj_itp_page = raw = res.read()
|
||||
if b'>Sign Out<' not in raw:
|
||||
if b'logout' not in raw:
|
||||
raise ValueError(
|
||||
'Failed to login (callback URL failed), check username and password')
|
||||
return br
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ def get_browser(self, *a, **kw):
|
|||
self.log('Performing login callback...')
|
||||
res = br.submit()
|
||||
self.wsj_itp_page = raw = res.read()
|
||||
if b'>Sign Out<' not in raw:
|
||||
if b'>logout<' not in raw:
|
||||
raise ValueError(
|
||||
'Failed to login (callback URL failed), check username and password')
|
||||
return br
|
||||
|
|
|
|||
Loading…
Reference in a new issue