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

No warning of missing templates #13

Open
UltraNurd opened this issue Mar 16, 2012 · 0 comments
Open

No warning of missing templates #13

UltraNurd opened this issue Mar 16, 2012 · 0 comments

Comments

@UltraNurd
Copy link
Contributor

I was getting some weird behavior (while parsing List of Governors of Alabama, for what it's worth) where table cells that should have contained ArticleLinks contained just newlines. I quickly realized that the cause must be that they were wrapped in the {{sortname}} template, but it wasn't until after a lot of digging inside core.py and expander.py that I determined that it was because that template didn't exist.

As it happens, I was working with a small subset of pages in my CDB, which among other things had filtered out templates. I realize this is a noob mistake to leave out the templates, but it would have been helpful if getParsedArticle had printed a warning or thrown an exception instead of just silently deleting apparently simple page content. I'm not sure what the best way to do this is, or if it's even widely desirable behavior, so I don't have a specific patch proposal.

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

1 participant