We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4a70e commit ec6e45fCopy full SHA for ec6e45f
app/code/Magento/CatalogImportExport/Model/Import/Product.php
@@ -2080,9 +2080,13 @@ private function getFileContent(string $path): string
2080
*/
2081
private function getRemoteFileContent(string $filename): string
2082
{
2083
- // phpcs:disable Magento2.Functions.DiscouragedFunction
2084
- $content = file_get_contents($filename);
2085
- // phpcs:enable Magento2.Functions.DiscouragedFunction
+ try {
+ // phpcs:ignore Magento2.Functions.DiscouragedFunction
+ $content = file_get_contents($filename);
2086
+ } catch (\Exception $e) {
2087
+ $content = false;
2088
+ }
2089
+
2090
return $content !== false ? $content : '';
2091
}
2092
0 commit comments