summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2022-08-05 10:23:14 +0200
committerGitHub <noreply@github.com>2022-08-05 10:23:14 +0200
commiteb7e2161630bccaa76cf285ae0b25a1bf93c9939 (patch)
tree0439a0ec8a56aa1d0e8d3bb9085c7f23fbb227b1
parente99728abae73ce7276d84a0706f48de5965de4bf (diff)
Update lib/Service/FeedServiceV2.php
Co-authored-by: Sean Molenaar <SMillerDev@users.noreply.github.com> Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
-rw-r--r--lib/Service/FeedServiceV2.php4
1 files changed, 3 insertions, 1 deletions
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 !== []) {