mirror of
https://github.com/friendica/friendica
synced 2025-04-22 13:50:12 +00:00
Merge pull request #12843 from annando/fetchraw-attachments
Catch all errors thrown by "fetchRaw"
This commit is contained in:
commit
a40ecb3902
22 changed files with 104 additions and 60 deletions
|
@ -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']];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue