Skip to content

Commit

Permalink
Catch Imaginary processing errors
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
  • Loading branch information
solracsf authored and artonge committed Oct 9, 2023
1 parent cad745b commit 0816bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Preview/Imaginary.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\Exception $e) {
} catch (\GuzzleHttp\Exception\ClientException | \Exception $e) {
$this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [
'exception' => $e,
]);
Expand Down

0 comments on commit 0816bc7

Please sign in to comment.