diff --git a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go index 21c9b1d..0d21ab3 100644 --- a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go +++ b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go @@ -241,7 +241,9 @@ func (s *Service) queryFeed(feedURL string) (*gofeed.Feed, []gofeed.Item, error) fp := gofeed.NewParser() fp.Client = cachingClient feed, err := fp.ParseURL(feedURL) - if err != nil { + // check for no items in addition to any returned errors as it appears some RSS feeds + // do not consistently return items. + if err != nil || len(feed.Items) == 0 { f := s.Feeds[feedURL] f.IsFailing = true s.Feeds[feedURL] = f