def get_credentials():
    """ Get the current thread's credentials. """
    try:
        return threading.current_thread().credentials
    except __HOLE__:
        credentials = Credentials()
        return set_credentials(credentials)
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/rbac.py/get_credentials