mirror of
https://github.com/friendica/friendica
synced 2025-04-26 11:10:11 +00:00
Use "Exception"
This commit is contained in:
parent
2b513a48c7
commit
6e3602591d
20 changed files with 41 additions and 41 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