Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract breaks on YAML files that are lists #1022

Open
jeremydw opened this issue Oct 8, 2019 · 3 comments
Open

Extract breaks on YAML files that are lists #1022

jeremydw opened this issue Oct 8, 2019 · 3 comments

Comments

@jeremydw
Copy link
Member

jeremydw commented Oct 8, 2019

Step #2 - "run grow command":     front_matter = self._parse_front_matter()
Step #2 - "run grow command":   File "/usr/local/lib/python2.7/dist-packages/grow/documents/document_format.py", line 166, in _parse_front_matter
Step #2 - "run grow command":     self._doc, raw_front_matter=self.raw_content)
Step #2 - "run grow command":   File "/usr/local/lib/python2.7/dist-packages/grow/documents/document_front_matter.py", line 41, in __init__
Step #2 - "run grow command":     self.update_raw_front_matter(raw_front_matter)
Step #2 - "run grow command":   File "/usr/local/lib/python2.7/dist-packages/grow/documents/document_front_matter.py", line 133, in update_raw_front_matter
Step #2 - "run grow command":     self._load_front_matter(raw_front_matter)
Step #2 - "run grow command":   File "/usr/local/lib/python2.7/dist-packages/grow/documents/document_front_matter.py", line 86, in _load_front_matter
Step #2 - "run grow command":     self._doc.pod_path, type(new_data).__name__))
Step #2 - "run grow command": grow.documents.document_front_matter.BadFormatError: Front matter needs to be a dictionary: /content/products/locales.yaml <list>
@Zoramite
Copy link
Member

Zoramite commented Oct 8, 2019

For a document, it does need to be a dictionary... what kind of document is it trying to extract? or is it more of a data file?

@jeremydw
Copy link
Member Author

jeremydw commented Oct 8, 2019 via email

@Zoramite
Copy link
Member

Zoramite commented Oct 8, 2019

I still want to rework how the extraction is done... when we do we could look at making the extraction process more lenient with the data format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants