Skip to content
Snippets Groups Projects
Verified Commit a2f3456e authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

pypi.loader: Filter out null snapshot branch

Related T1396
parent 57c2adf8
No related branches found
Tags v0.0.7
1 merge request!26pypi.loader: Filter out null snapshot branches
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment