mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
LLM OCP API: Simplify TaskBackgroundJob#run catch block
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
e810a8b66b
commit
9ccc65d68c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue