# Buggy code
def make_raw_parameters_from_file(cls, filepath):
    with open(filepath, "r") as fh:
        try:
            ruamel_yaml = yaml_load(fh)
        except ScannerError as err:
            mark = err.problem_mark
            raise LoadError("Invalid YAML", filepath, mark.line, mark.column)
    return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP


# Traceback (ruamel_yaml.reader.ReaderError)
Traceback (most recent call last):
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\cli\main.py", line 97, in main
from ..activate import main as activator_main
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\activate.py", line 12, in <module>
context.__init__()  # oOn import, context does not include SEARCH_PATH. This line fixes that.
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\base\context.py", line 236, in __init__
argparse_args=argparse_args)
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 722, in __init__
self._set_search_path(search_path)
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 728, in _set_search_path
self._set_raw_data(load_file_configs(search_path))
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 369, in load_file_configs
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 369, in <genexpr>
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 344, in _file_yaml_loader
yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath)
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\configuration.py", line 332, in make_raw_parameters_from_file
ruamel_yaml = yaml_load(fh)
File "C:\Users\Subham\Anaconda3\lib\site-packages\conda\common\serialize.py", line 54, in yaml_load
return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2")
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\main.py", line 73, in load
loader = Loader(stream, version, preserve_quotes=preserve_quotes)
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\loader.py", line 56, in __init__
Reader.__init__(self, stream)
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 98, in __init__
self.determine_encoding()
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 149, in determine_encoding
self.update(1)
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 189, in update
self.check_printable(data)
File "C:\Users\Subham\Anaconda3\lib\site-packages\ruamel_yaml\reader.py", line 160, in check_printable
'unicode', "special characters are not allowed")
ruamel_yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
in "C:\Users\Subham\.condarc", position 0

# Fixed code
def make_raw_parameters_from_file(cls, filepath):
    with open(filepath, "r") as fh:
        try:
            ruamel_yaml = yaml_load(fh)
        except ScannerError as err:
            mark = err.problem_mark
            raise ConfigurationLoadError(
                filepath,
                "  reason: invalid yaml at line %(line)s, column %(column)s",
                line=mark.line,
                column=mark.column,
            )
        except ReaderError as err:
            raise ConfigurationLoadError(
                filepath,
                "  reason: invalid yaml at position %(position)s",
                position=err.position,
            )
        return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP