# Path: sslscan/exception.py
# class ConfigOptionNotFound(BaseConfigError):
#     def __init__(self, name, value):
#         self.name = name
#         self.value = value
# 
#     def __str__(self):
#         s = "Option with name '{0}' does not exist.".format(
#             self.name
#         )
#         return s
# 
# class OptionValueError(BaseConfigError):
#     def __init__(self, option, value):
#         self.option = option
#         self.value = value
# 
#     def __str__(self):
#         s = "Unable to set value '{2}' for option '{0}' of type '{1}'".format(
#             self.option.name,
#             self.option.type,
#             self.value
#         )
#         return s


import logging
from sslscan.exception import ConfigOptionNotFound, OptionValueError
        :return: If found the value of the option or the default value
        """

        option = self.get_option(name)
        if option is None:
            return None
        return option.get_value(default=default)

    def set_parent(self, parent):
        """
        Set the current parent config object.

        :param Object|None parent: Set or reset parent config object
        """

        self._parent = parent

    def set_value(self, name, value):
        """
        Set the value of an option.

        :param String name: Name of the option
        :param Mixed value: The value of the option to set
        :return: False or True
        :rtype: Boolean
        """

        logger.debug("Set value '%s' to '%r'", name, value)
        option = self._option_map.get(name, None)
        if option is None:

# Path: sslscan/exception.py
# class ConfigOptionNotFound(BaseConfigError):
#     def __init__(self, name, value):
#         self.name = name
#         self.value = value
# 
#     def __str__(self):
#         s = "Option with name '{0}' does not exist.".format(
#             self.name
#         )
#         return s
# 
# class OptionValueError(BaseConfigError):
#     def __init__(self, option, value):
#         self.option = option
#         self.value = value
# 
#     def __str__(self):
#         s = "Unable to set value '{2}' for option '{0}' of type '{1}'".format(
#             self.option.name,
#             self.option.type,
#             self.value
#         )
#         return s


# Path: sslscan/config.py
import logging
from sslscan.exception import ConfigOptionNotFound, OptionValueError

        :return: If found the value of the option or the default value
        """

        option = self.get_option(name)
        if option is None:
            return None
        return option.get_value(default=default)

    def set_parent(self, parent):
        """
        Set the current parent config object.

        :param Object|None parent: Set or reset parent config object
        """

        self._parent = parent

    def set_value(self, name, value):
        """
        Set the value of an option.

        :param String name: Name of the option
        :param Mixed value: The value of the option to set
        :return: False or True
        :rtype: Boolean
        """

        logger.debug("Set value '%s' to '%r'", name, value)
        option = self._option_map.get(name, None)
        if option is None:

            raise ConfigOptionNotFound(