kojira: don't fail on deleted items

py2 relict - dict.values() is now iterator, so
RuntimeError: dictionary changed size during iteration
can be raised when needed repo was deleted during the iteration.

Simple fix to use copy instead of iterator will fix this.
This commit is contained in:
Tomas Kopecek 2021-12-06 14:11:56 +01:00
parent c85b1efbb7
commit 6b64222ab7

View file

@ -802,7 +802,7 @@ class RepoManager(object):
# 2.4-hour-old, very popular repo
def updateTagScores(self):
for entry in self.needed_tags.values():
for entry in list(self.needed_tags.values()):
self.setTagScore(entry)
def _delete_needed_tag(self, tag_id):