10000 [AssetMapper] Don't explode if downloading and the installed has a pr… · symfony/symfony@732c049 · GitHub
[go: up one dir, main page]

Skip to content

Commit 732c049

Browse files
committed
[AssetMapper] Don't explode if downloading and the installed has a problem
1 parent fa651b1 commit 732c049

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Symfony/Component/AssetMapper/ImportMap/RemotePackageDownloader.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public function __construct(
3434
*/
3535
public function downloadPackages(callable $progressCallback = null): array
3636
{
37-
$installed = $this->loadInstalled();
37+
try {
38+
$installed = $this->loadInstalled();
39+
} catch (\LogicException) {
40+
$installed = [];
41+
}
3842
$entries = $this->importMapConfigReader->getEntries();
3943
$remoteEntriesToDownload = [];
4044
$newInstalled = [];

0 commit comments

Comments
 (0)
0