Permalink
Browse files

sometimes the summary is nil; check for that case

  • Loading branch information...
kisonecat committed Jan 19, 2012
1 parent 668cc08 commit 6b3a3f5b2cd3739f1bef6c0d9e994d561266d56f
Showing with 1 addition and 1 deletion.
  1. +1 −1 reader.rb
View
@@ -118,7 +118,7 @@ def parse(data)
article = Article.new
article.description = item['content'].to_s
if article.description.length == 0
- article.description = item['summary']['content']
+ article.description = item['summary']['content'] unless item['summary'].nil?
end
article.author = item['author']
article.email = item['email']

0 comments on commit 6b3a3f5

Please sign in to comment.