Skip to content

Commit c0833b7

Browse files
committed
Merge remote-tracking branch 'origin/MC-19132' into 2.3.3-develop-pr68
2 parents f498fa5 + bd8f875 commit c0833b7

File tree

1 file changed

+2
-1
lines changed
  • lib/internal/Magento/Framework/Image/Adapter

1 file changed

+2
-1
lines changed

lib/internal/Magento/Framework/Image/Adapter/Gd2.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,9 @@ private function _fillBackgroundColor(&$imageResourceTo)
296296
imagecolortransparent($imageResourceTo, $transparentColor);
297297
return $transparentColor;
298298
}
299+
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock.DetectedCatch
299300
} catch (\Exception $e) {
300-
throw new \DomainException('Failed to fill image.');
301+
// fallback to default background color
301302
}
302303
}
303304
list($r, $g, $b) = $this->_backgroundColor;

0 commit comments

Comments
 (0)