Skip to content
This repository has been archived by the owner on Mar 17, 2020. It is now read-only.

Enable excerpt generation by both BeautifulSoup & lxml #26

Closed
wants to merge 2 commits into from

Conversation

nryoung
Copy link

@nryoung nryoung commented Feb 6, 2013

This pull request is addressing the issue referenced here: #19 and here: https://groups.google.com/forum/#!topic/blogofile-discuss/7Y7eXWOH29o/discussion

I wasn't able to figure out to add the pull request to the existing issue, so I created a new one.

I tried to follow the coding standards of the rest of the code. Please let me know if something needs to be changed.
Thanks!

import bs4
except ImportError:
print("\nlxml or bs4 is required in order to create post excerpts.")
print("See http://lxml.de/installation.html for installation "
"instructions.")
print("You can also turn off post excerpts in your _config.py:")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the indentation correctly, would not this message be printed (and exit(1) issued in the following line) even if BeautifulSoup was imported without problems?

@douglatornell
Copy link
Collaborator

Thanks for the pull request and code review. I'm presently travelling with sporadic, limited network access, so it will be couple of weeks before I can do anything with this. Thanks for your patience.

@alkhimey alkhimey mentioned this pull request May 18, 2013
@nryoung nryoung closed this Jun 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants