Skip to content

Commit

Permalink
skip empty packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ueffel committed Feb 7, 2023
1 parent 65a88f4 commit 1c51fc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packagecontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ def _get_available_packages(self, force=False):

self._available_packages = []
for json_package in repo["packages"]:
if not json_package["name"]:
self.warn("empty package encountered in repo, skipping", json_package)
continue
self._available_packages.append(Package(json_package["name"],
json_package["version"],
json_package["description"],
Expand Down

0 comments on commit 1c51fc4

Please sign in to comment.