#3166 kojira: don't fail on deleted items
Merged 5 months ago by tkopecek. Opened 5 months ago by tkopecek.
tkopecek/koji kojira2  into  master

file modified
+1 -1
@@ -802,7 +802,7 @@ 

          # 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):

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.

Commit a227cce fixes this pull-request

Pull-Request has been merged by tkopecek

5 months ago
Metadata