From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 2 Nov 2023 09:05:08 +0000 (+0100) Subject: [stable26] Catch Imaginary processing errors X-Git-Tag: v26.0.9rc1~19^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45f1eb27b5dcfc81176dceee952fa6a5ebb8e460;p=nextcloud-server.git [stable26] Catch Imaginary processing errors Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- 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, ]);