Fix Strategy+Business

This commit is contained in:
Kovid Goyal 2011-05-12 15:09:41 -06:00
parent 953c8e9395
commit af23efd3d6

View File

@ -33,7 +33,7 @@ class StrategyBusinessRecipe(BasicNewsRecipe):
elif c.name.endswith('_password'): elif c.name.endswith('_password'):
br[c.name] = self.password br[c.name] = self.password
raw = br.submit().read() raw = br.submit().read()
if '>Logout' not in raw: if 'You have been logged in' not in raw:
raise ValueError('Failed to login, check your username and password') raise ValueError('Failed to login, check your username and password')
return br return br