Raise exception on YAML.load