def _get_value(self, key, func=None, split_val=None, as_boolean=False,<EOL>exception_default=None):
try:<EOL><INDENT>if as_boolean:<EOL><INDENT>return self.config.getboolean(key[<NUM_LIT:0>], key[<NUM_LIT:1>])<EOL><DEDENT>value = self.config.get(key[<NUM_LIT:0>], key[<NUM_LIT:1>])<EOL>if split_val is not None:<EOL><INDENT>value = value.split(split_val)<EOL><DEDENT>if func is not None:<EOL><INDENT>return func(value)<EOL><DEDENT>return value<EOL><DEDENT>except (KeyError, configparser.NoSectionError, configparser.NoOptionError) as e:<EOL><INDENT>if exception_default is not None:<EOL><INDENT>return exception_default<EOL><DEDENT>raise KeyError(e)<EOL><DEDENT>
Helper method to get a value from the config