Closed bgruening closed 6 years ago
revisions = repo_info.get('revisions', [])
Should never return None
right? In that case it should return an empty list []
which has length zero.
Did you get an error message when running shed-tools install that indicates that something may be wrong in this assumption?
Not in this case:
>>> repo_info = {'foo': None}
>>> revisions = repo_info.get('foo', [])
>>> print revisions
None
:+1:
revisions
can be None ....