Skip to content

Commit 24580ee

Browse files
committed
#22424: Static test fix.
1 parent 986d384 commit 24580ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Catalog/Model/Product/Gallery/GalleryManagement.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ public function create($sku, ProductAttributeMediaGalleryEntryInterface $entry)
7171
$product->setMediaGalleryEntries($existingMediaGalleryEntries);
7272
try {
7373
$product = $this->productRepository->save($product);
74+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
7475
} catch (InputException $inputException) {
7576
throw $inputException;
77+
// phpcs:ignore Magento2.Exceptions.ThrowCatch
7678
} catch (\Exception $e) {
7779
throw new StateException(__("The product can't be saved."));
7880
}

0 commit comments

Comments
 (0)