def METHOD_NAME(self):
    """
    Write the configuration file.
    """
    try:
        log.debug("Write configuration file %s", self._config_file)
        with open(self._config_file, "w", encoding="utf-8") as fp:
            self._config.write(fp)
    except (OSError, configparser.Error) as e:
        log.error("Could not write the local server configuration {}: {}".format(self._config_file, e))