Skip to content

Commit

Permalink
Merge pull request #40819 from nextcloud/imaginaryGuzzleErrors
Browse files Browse the repository at this point in the history
Catch Imaginary processing errors
  • Loading branch information
solracsf authored Nov 1, 2023
2 parents 489624b + d1169af commit b46879d
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 @@ -168,7 +168,7 @@ public function getCroppedThumbnail(File $file, int $maxX, int $maxY, bool $crop
'timeout' => 120,
'connect_timeout' => 3,
]);
} catch (\Exception $e) {
} catch (\Throwable $e) {
$this->logger->info('Imaginary preview generation failed: ' . $e->getMessage(), [
'exception' => $e,
]);
Expand Down

0 comments on commit b46879d

Please sign in to comment.