import yaml


def load_yaml_config(filename):
  """Read the YAML configuration file into a dictionary.
 
  Arguments:
      filename {string} -- The location of the YAML configuration file.]

  Returns:
     Dictionary -- The contents of the configuration file. An empty
     dictionary is returned on error.
  """
  with open(filename) as the_stream:
    try:
      return yaml.safe_load(the_stream)
    except yaml.YAMLError as exc:
      print(exc)
      return {}