Skip to content

Commit ec6e45f

Browse files
committed
ACP2E-1565: [Cloud] Import Product images issues
1 parent fd4a70e commit ec6e45f

File tree

1 file changed

+7
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import

1 file changed

+7
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,9 +2080,13 @@ private function getFileContent(string $path): string
20802080
*/
20812081
private function getRemoteFileContent(string $filename): string
20822082
{
2083-
// phpcs:disable Magento2.Functions.DiscouragedFunction
2084-
$content = file_get_contents($filename);
2085-
// phpcs:enable Magento2.Functions.DiscouragedFunction
2083+
try {
2084+
// phpcs:ignore Magento2.Functions.DiscouragedFunction
2085+
$content = file_get_contents($filename);
2086+
} catch (\Exception $e) {
2087+
$content = false;
2088+
}
2089+
20862090
return $content !== false ? $content : '';
20872091
}
20882092

0 commit comments

Comments
 (0)