'Update files when the config changed.'

@config.change_filter('content', 'host-block-lists')
def on_config_changed(self):

    urls = config.get('content', 'host-block-lists')
    if (urls is None):
        try:
            os.remove(self._local_hosts_file)
        except FileNotFoundError:
            pass
        except OSError as e:
            log.misc.exception('Failed    to    delete    hosts    file:    {}'.format(e))
