Skip to content

Commit

Permalink
Merge pull request #149 from ms8r/master
Browse files Browse the repository at this point in the history
bugfix in article.py, is_valid_body
  • Loading branch information
codelucas committed Nov 6, 2015
2 parents e832119 + f7c1fee commit 7be8573
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion newspaper/article.py
Expand Up @@ -269,7 +269,8 @@ def is_valid_body(self):
wordcount = self.text.split(' ')
sentcount = self.text.split('.')

if meta_type == 'article' and wordcount > (self.config.MIN_WORD_COUNT):
if (meta_type == 'article' and len(wordcount) >
(self.config.MIN_WORD_COUNT)):
log.debug('%s verified for article and wc' % self.url)
return True

Expand Down

0 comments on commit 7be8573

Please sign in to comment.