Skip to content
Snippets Groups Projects

pypi.loader: Filter out null snapshot branches

Compare and
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -113,7 +113,7 @@ class PyPILoader(SWHLoader):
# retrieve only revisions (e.g the alias we do not want here)
revs = [rev['target']
for rev in last_snapshot['branches'].values()
if rev['target_type'] == 'revision']
if rev and rev['target_type'] == 'revision']
known_revisions = self.storage.revision_get(revs)
ret = {}
for revision in known_revisions:
Loading