YesssSMS/YesssSMS.py
def login_data_valid(self):
        """Check for working login data."""
        login_working = False
        try:
            with self._login(requests.Session()) as sess:
                sess.get(self._logout_url)
        except self.LoginError:
            pass
        else:
            login_working = True
        return login_working
def login_data_valid(self):
        """Check for working login data."""
        login_working = False
        try:
            with self._login(requests.Session()) as sess:
                sess.get(self._logout_url)
        except self.LoginError:
            pass
        else:
            login_working = True
        return login_working
def login_data_valid ( self ) : login_working = False try : with self . _login ( requests . Session ( ) ) as sess : sess . get ( self . _logout_url ) except self . LoginError : pass else : login_working = True return login_working
Check for working login data.
Check for working login data .