Skip to content

Commit b46879d

Browse files
authored
Merge pull request #40819 from nextcloud/imaginaryGuzzleErrors
Catch Imaginary processing errors
2 parents 489624b + d1169af commit b46879d

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
@@ -168,7 +168,7 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
168168
'timeout' => 120,
169169
'connect_timeout' => 3,
170170
]);
171-
} catch (\Exception $e) {
171+
} catch (\Throwable $e) {
172172
$this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [
173173
'exception' => $e,
174174
]);

0 commit comments

Comments
 (0)