#2853 kojira: don't fail on already deleted repo
Merged a year ago by tkopecek. Opened a year ago by tkopecek.
tkopecek/koji issue2851a  into  master

file modified
+7 -1
@@ -1016,7 +1016,13 @@ 

              if repo.expired():

                  # try to delete

                  if repo.tryDelete(self.delete_logger):

-                     del self.repos[repo.repo_id]

+                     try:

+                         del self.repos[repo.repo_id]

+                     except KeyError:

+                         # during tryDelete repo record is deleted on hub

+                         # if readCurrentRepos is called meanwhile, it could have

+                         # cleaned self.repos already

+                         pass

                      n += 1

          self.delete_logger.debug("Ending delete repos (queued for deletion: %s)" % n)

  

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

a year ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

a year ago

Commit f912799 fixes this pull-request

Pull-Request has been merged by tkopecek

a year ago
Metadata