Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sometimes the summary is nil; check for that case

  • Loading branch information...
commit 6b3a3f5b2cd3739f1bef6c0d9e994d561266d56f 1 parent 668cc08
Jim Fowler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  reader.rb
View
2  reader.rb
@@ -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']
Please sign in to comment.
Something went wrong with that request. Please try again.