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:
parent
c85b1efbb7
commit
6b64222ab7
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue