Skip to content

Commit 1c51fc4

Browse files
committed
skip empty packages
1 parent 65a88f4 commit 1c51fc4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packagecontrol.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ def _get_available_packages(self, force=False):
459459

460460
self._available_packages = []
461461
for json_package in repo["packages"]:
462+
if not json_package["name"]:
463+
self.warn("empty package encountered in repo, skipping", json_package)
464+
continue
462465
self._available_packages.append(Package(json_package["name"],
463466
json_package["version"],
464467
json_package["description"],

0 commit comments

Comments
 (0)