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 104ba03 commit 70f6edbCopy full SHA for 70f6edb
app/code/Magento/Theme/Block/Html/Header/CriticalCss.php
@@ -45,14 +45,13 @@ public function __construct(
45
* Returns critical css data as string.
46
*
47
* @return bool|string
48
- * @throws LocalizedException
49
*/
50
public function getCriticalCssData()
51
{
52
try {
53
$asset = $this->assetRepo->createAsset($this->filePath, ['_secure' => 'false']);
54
$content = $asset->getContent();
55
- } catch (NotFoundException $e) {
+ } catch (LocalizedException | NotFoundException $e) {
56
$content = '';
57
};
58
0 commit comments