aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-07 11:46:31 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-07-07 13:39:10 +0200
commit9ccc65d68c025eb371b1e1877e05593c7a808fea (patch)
tree786de5e6c686953b8cedfbce1335055ee8215c8a
parente810a8b66b6b39e13dbafba9138cec776609af65 (diff)
downloadnextcloud-server-9ccc65d68c025eb371b1e1877e05593c7a808fea.tar.gz
nextcloud-server-9ccc65d68c025eb371b1e1877e05593c7a808fea.zip
LLM OCP API: Simplify TaskBackgroundJob#run catch block
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--lib/private/LanguageModel/TaskBackgroundJob.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/LanguageModel/TaskBackgroundJob.php b/lib/private/LanguageModel/TaskBackgroundJob.php
index 0a33f54e89e..9198f400325 100644
--- a/lib/private/LanguageModel/TaskBackgroundJob.php
+++ b/lib/private/LanguageModel/TaskBackgroundJob.php
@@ -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);