'Set a specific Tribler setting. Throw a ValueError if this setting is not available.'

def parse_setting(self, section, option, value):

    if ((section in self.session.config.config) and (option in self.session.config.config[section])):
        self.session.config.config[section][option] = value
    else:
        raise ValueError(('Section    %s    with    option    %s    does    not    exist' % (section, option)))
    if ((section == 'libtorrent') and ((option == 'max_download_rate') or (option == 'max_upload_rate'))):
        self.session.lm.ltmgr.update_max_rates_from_config()
