From bad0077cbd14dd2418b0edb6836b419b34757f5a Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Oct 08 2018 11:40:01 +0000 Subject: Skip unused repotypes during migration Signed-off-by: Patrick Uiterwijk --- diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index 00f6822..27837f7 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -703,6 +703,8 @@ def move_to_repospanner(self, session, name, namespace, user, region): for repotype in pagure.lib.REPOTYPES: repopath = project.repopath(repotype) + if repopath is None: + continue repo_obj = pagure.lib.repo.PagureRepo(repopath) # At this moment, this subrepo has been migrated