import json


def get_feed_by_path(path):
    """
    This fetches the feed from a given path
    :param path: Full path to file
    :return: DiscoFeed as python object
    """
    try:
        with open(path, 'r') as fin:
            return json.load(fin)
    except:
        raise Exception("Could not read file or received invalid JSON")