raw = br.submit().read() if '>Log Out<' not in raw: raise ValueError('Failed to login to time.com, check' ' your username and password')