Commit 294c0f36 by Alex Louden

Handle items in collection that don't have packages

E.g. https://github.com/nltk/nltk/issues/882
parent b4a7085d
......@@ -840,8 +840,11 @@ class Downloader(object):
for i, child_id in enumerate(collection.children):
if child_id in self._packages:
collection.children[i] = self._packages[child_id]
if child_id in self._collections:
elif child_id in self._collections:
collection.children[i] = self._collections[child_id]
else:
print('removing collection member with no package: {}'.format(child_id))
del collection.children[i]
# Fill in collection.packages for each collection.
for collection in self._collections.values():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment