Skip to content

Commit 9ab7391

Browse files
authored
adding null check to external-posts.rb to avoid parsing failure (#2347)
Adjusting issue #2343 by adding null check.
1 parent 363f277 commit 9ab7391

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

_plugins/external-posts.rb

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def generate(site)
1212
site.config['external_sources'].each do |src|
1313
p "Fetching external posts from #{src['name']}:"
1414
xml = HTTParty.get(src['rss_url']).body
15+
return if xml.nil?
1516
feed = Feedjira.parse(xml)
1617
feed.entries.each do |e|
1718
p "...fetching #{e.url}"

0 commit comments

Comments
 (0)