Fix WSJ login detection

This commit is contained in:
Kovid Goyal 2012-09-06 11:15:21 +05:30
parent b35b5c292f
commit d0404dc8c3

View File

@ -52,7 +52,7 @@ class WallStreetJournal(BasicNewsRecipe):
br['password'] = self.password
res = br.submit()
raw = res.read()
if 'Welcome,' not in raw and '>Logout<' not in raw:
if '>Log Out<' not in raw:
raise ValueError('Failed to log in to wsj.com, check your '
'username and password')
return br