Merge pull request #12843 from annando/fetchraw-attachments

Catch all errors thrown by "fetchRaw"
This commit is contained in:
Philipp
2023-02-27 08:24:05 +01:00
committed by GitHub
22 changed files with 104 additions and 60 deletions

View File

@@ -718,7 +718,7 @@ class Image
if ($image->isImagick()) {
try {
$colors = $image->image->getImagePixelColor($x, $y)->getColor();
} catch (\Throwable $th) {
} catch (\Exception $exception) {
return '';
}
$row[] = [$colors['r'], $colors['g'], $colors['b']];