From eb7e2161630bccaa76cf285ae0b25a1bf93c9939 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Fri, 5 Aug 2022 10:23:14 +0200 Subject: Update lib/Service/FeedServiceV2.php Co-authored-by: Sean Molenaar Signed-off-by: Benjamin Brahmer --- lib/Service/FeedServiceV2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Service/FeedServiceV2.php b/lib/Service/FeedServiceV2.php index 1d78c1549..6b354dc1b 100644 --- a/lib/Service/FeedServiceV2.php +++ b/lib/Service/FeedServiceV2.php @@ -205,7 +205,9 @@ class FeedServiceV2 extends Service } catch (ReadErrorException $ex) { $this->logger->debug($ex->getMessage()); # the url did not lead to a valid feed, try autodiscover - if ($full_discover) { + if ($full_discover === false) { +throw new ServiceNotFoundException($ex->getMessage()); +} $this->logger->warning("No valid feed found at URL, attempting auto discovery"); $feeds = $this->explorer->discover($feedUrl); if ($feeds !== []) { -- cgit v1.2.3