diff --git a/lib/Migration/Version030900Date20251006152735.php b/lib/Migration/Version030900Date20251006152735.php index a721fc98..44731f36 100644 --- a/lib/Migration/Version030900Date20251006152735.php +++ b/lib/Migration/Version030900Date20251006152735.php @@ -29,6 +29,9 @@ public function __construct( public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void { // we refresh the model list to make sure they are stored in oc_appconfig // so they are available immediately after the app upgrade to populate the task types enum values - $this->openAIAPIService->getModels(null, true); + try { + $this->openAIAPIService->getModels(null, true); + } catch (\Exception) { + } } }