This commit is contained in:
Kovid Goyal 2019-09-18 08:59:37 +05:30
commit 94c6624958
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ class WSJ(BasicNewsRecipe):
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

View File

@ -148,7 +148,7 @@ class WSJ(BasicNewsRecipe):
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