Commit 8177d89a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

orphan cleaning

parent d9be4a40
Pipeline #1921 passed with stages
in 1 minute and 5 seconds
......@@ -154,7 +154,8 @@ class Forge(Links, NamedModel):
for orphan in Project.objects.filter(main_namespace=None):
repo = orphan.repo_set.filter(forge__source=SOURCES.gitlab).first()
update_gitlab(self, self.api_data(f'/projects/{repo.forked_from}'))
if repo:
update_gitlab(self, self.api_data(f'/projects/{repo.forked_from}'))
def get_projects_redmine(self):
pass # TODO
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment