]> source.dussan.org Git - nextcloud-server.git/commitdiff
LLM OCP API: Simplify TaskBackgroundJob#run catch block
authorMarcel Klehr <mklehr@gmx.net>
Fri, 7 Jul 2023 09:46:31 +0000 (11:46 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:02:09 +0000 (10:02 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit 9ccc65d68c025eb371b1e1877e05593c7a808fea)

lib/private/LanguageModel/TaskBackgroundJob.php

index 0a33f54e89e4efddaf1621b65763299126181227..9198f400325509aa8ad941b42ad8c098ff574f8d 100644 (file)
@@ -56,7 +56,7 @@ class TaskBackgroundJob extends QueuedJob {
                try {
                        $this->languageModelManager->runTask($task);
                        $event = new TaskSuccessfulEvent($task);
-               } catch (\RuntimeException|PreConditionNotMetException|\Throwable $e) {
+               } catch (\Throwable $e) {
                        $event = new TaskFailedEvent($task, $e->getMessage());
                }
                $this->eventDispatcher->dispatchTyped($event);