Fix for case where 'info' is None.

This commit is contained in:
Joe Simmons-Talbott 2021-11-04 08:26:17 -04:00 committed by Tomas Kopecek
parent 61645c6cd9
commit a58ce6bb38

View file

@ -447,6 +447,8 @@ class RepoManager(object):
repo = ManagedRepo(self, data, repodata)
if self.options.ignore_other_volumes:
info = repo.get_info()
if info is None:
continue
volume = info.get('volume')
if volume is not None and volume != 'DEFAULT':
# Other volume