Skip to content

Commit 0816bc7

Browse files
solracsfartonge
authored andcommitted
Catch Imaginary processing errors
Signed-off-by: Git'Fellow <[email protected]>
1 parent cad745b commit 0816bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Preview/Imaginary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
165165
'timeout' => 120,
166166
'connect_timeout' => 3,
167167
]);
168-
} catch (\Exception $e) {
168+
} catch (\GuzzleHttp\Exception\ClientException | \Exception $e) {
169169
$this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [
170170
'exception' => $e,
171171
]);

0 commit comments

Comments
 (0)