# Buggy code
def make_raw_parameters_from_file(cls, filepath):
    with open(filepath, "r") as fh:
        ruamel_yaml = yaml_load(fh)
    return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP


# Traceback (ruamel_yaml.scanner.ScannerError)
Traceback (most recent call last):
File "/opt/anaconda/bin/conda", line 4, in <module>
import conda.cli
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/__init__.py", line 8, in <module>
from .main import main  # NOQA
File "/opt/anaconda/lib/python2.7/site-packages/conda/cli/main.py", line 46, in <module>
from ..base.context import context
File "/opt/anaconda/lib/python2.7/site-packages/conda/base/context.py", line 252, in <module>
context = Context(SEARCH_PATH, conda, None)
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 692, in __init__
self._add_search_path(search_path)
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 699, in _add_search_path
return self._add_raw_data(load_file_configs(search_path))
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in load_file_configs
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "/opt/anaconda/lib/python2.7/collections.py", line 69, in __init__
self.__update(*args, **kwds)
File "/opt/anaconda/lib/python2.7/_abcoll.py", line 571, in update
for key, value in other:
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 371, in <genexpr>
raw_data = odict(kv for kv in chain.from_iterable(load_paths))
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 347, in _file_yaml_loader
yield fullpath, YamlRawParameter.make_raw_parameters_from_file(fullpath)
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/configuration.py", line 338, in make_raw_parameters_from_file
ruamel_yaml = yaml_load(fh)
File "/opt/anaconda/lib/python2.7/site-packages/conda/common/yaml.py", line 26, in yaml_load
return yaml.load(string, Loader=yaml.RoundTripLoader, version="1.2")
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/main.py", line 75, in load
return loader.get_single_data()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/constructor.py", line 60, in get_single_data
node = self.get_single_node()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/composer.py", line 48, in get_single_node
self.get_event()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 136, in get_event
self.current_event = self.state()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/parser.py", line 150, in parse_stream_start
token.move_comment(self.peek_token())
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1543, in peek_token
self._gather_comments()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 1573, in _gather_comments
self.fetch_more_tokens()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 239, in fetch_more_tokens
return self.fetch_value()
File "/opt/anaconda/lib/python2.7/site-packages/ruamel_yaml/scanner.py", line 598, in fetch_value
self.get_mark())
ruamel_yaml.scanner.ScannerError: mapping values are not allowed here
in "/opt/anaconda/.condarc", line 4, column 8

# 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 LoadError("Invalid YAML", filepath, mark.line, mark.column)
    return cls.make_raw_parameters(filepath, ruamel_yaml) or EMPTY_MAP