From 5e719f3e9eb6cf48c3fd8ac97181638b24d03fc9 Mon Sep 17 00:00:00 2001 From: Yassine Doghri Date: Tue, 11 Jul 2023 10:28:19 +0000 Subject: [PATCH] fix(podcast-import): remove error log when no import in queue, exit with success instead --- modules/PodcastImport/Commands/PodcastImport.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/PodcastImport/Commands/PodcastImport.php b/modules/PodcastImport/Commands/PodcastImport.php index 663c262b..4d1abe6a 100644 --- a/modules/PodcastImport/Commands/PodcastImport.php +++ b/modules/PodcastImport/Commands/PodcastImport.php @@ -74,7 +74,8 @@ class PodcastImport extends BaseCommand $nextImport = end($queuedImports); if (! $nextImport instanceof PodcastImportTask) { - throw new Exception('No import in queue.'); + // no queued import task, stop process. + exit(0); } $this->importTask = $nextImport;