def METHOD_NAME(resp):
    """
    If we can load the response data then return it,
    else raise an exception
    :param resp: requests.get result
    :return: dict of resp.text
    """
    try:
        data = json.loads(resp.text)
    except:
        message = ("Error parsing PVWatts response. "
                   "Status code: {}. Text: {}".format(resp.status_code, resp.text))
        raise_pvwatts_exception(message)
    else:
        return data