osnapi/core.py
def _try_login(_):
    """Callback that attempts to re-authenticate by using stored Settings"""
    if Settings.username and Settings.password:
        try: login(Settings.username, Settings.password)
        except: return False
        else: return True
    else: return False
Callback that attempts to re-authenticate by using stored Settings
Callback that attempts to re-authenticate by using stored Settings
Callback that attempts to re - authenticate by using stored Settings
def _try_login(_):
    if Settings.username and Settings.password:
        try: login(Settings.username, Settings.password)
        except: return False
        else: return True
    else: return False
def _try_login ( _ ) : if Settings . username and Settings . password : try : login ( Settings . username , Settings . password ) except : return False else : return True else : return False
Callback that attempts to re-authenticate by using stored Settings
Callback that attempts to re - authenticate by using stored Settings
"""Callback that attempts to re-authenticate by using stored Settings"""
_