From 45f1eb27b5dcfc81176dceee952fa6a5ebb8e460 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:05:08 +0100 Subject: [PATCH] [stable26] Catch Imaginary processing errors Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Preview/Imaginary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Preview/Imaginary.php b/lib/private/Preview/Imaginary.php index b26c2505a59..1375857c210 100644 --- a/lib/private/Preview/Imaginary.php +++ b/lib/private/Preview/Imaginary.php @@ -146,7 +146,7 @@ class Imaginary extends ProviderV2 { 'timeout' => 120, 'connect_timeout' => 3, ]); - } catch (\Exception $e) { + } catch (\Throwable $e) { $this->logger->error('Imaginary preview generation failed: ' . $e->getMessage(), [ 'exception' => $e, ]); -- 2.39.5