Use \Throwable instead

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2023-10-27 07:54:39 +02:00 committed by backportbot-nextcloud[bot]
parent 5a94ced5f7
commit 09b9f5bd00

View file

@ -149,7 +149,7 @@ class Imaginary extends ProviderV2 {
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\GuzzleHttp\Exception\ClientException | \Exception $e) {
} catch (\Throwable $e) {
$this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [
'exception' => $e,
]);