Commit 6bc5782a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

update_github: dont try to look into repo_data if its not there

parent cbccb2cc
Pipeline #1549 passed with stages
in 1 minute and 27 seconds
......@@ -943,7 +943,8 @@ def update_github(forge, namespace, data):
project.license = license
if 'source' in repo_data:
repo.forked_from = repo_data['source']['id']
repo.open_issues = repo_data['open_issues_count']
if repo_data:
repo.open_issues = repo_data['open_issues_count']
repo.clone_url = data['clone_url']
repo.open_pr = len(list(repo.api_list('/pulls')))
repo.save()
......
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