def find_credentials():
    """
    Search for API credentials in current environment.

    Looks for ``SOCCERMETRICS_APP_ID`` and ``SOCCERMETRICS_APP_KEY``
    among the environment variables.  Returns a ``(None, None)``
    tuple if neither variable is not present in the environment.

    :returns: (account, api_key) or (None, None)
    """
    try:
        account = os.environ["SOCCERMETRICS_APP_ID"]
        api_key = os.environ["SOCCERMETRICS_APP_KEY"]
        return account, api_key
    except __HOLE__:
        return None, None
dataset/ETHPy150Open soccermetrics/soccermetrics-client-py/soccermetrics/rest/__init__.py/find_credentials