Ignore errors when there's no feed data

This commit is contained in:
Shadowfacts 2022-04-18 18:20:46 -04:00
parent a7a296b342
commit 87ea1f5624
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ defmodule Frenzy.UpdateFeeds do
{:ok, rss} -> {:ok, rss} ->
update_feed_from_rss(feed, rss) update_feed_from_rss(feed, rss)
{:error, :no_data} ->
:ok
{:error, reason} -> {:error, reason} ->
Logger.error("Unable to parse feed at '#{feed.feed_url}': #{inspect(reason)}") Logger.error("Unable to parse feed at '#{feed.feed_url}': #{inspect(reason)}")