Skip to content

Commit 9d69d7b

Browse files
authored
Merge pull request #2742 from chaoss/main-facade-hotfix
Facade Quick Fix
2 parents 46d396d + 0557151 commit 9d69d7b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

augur/tasks/git/facade_tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def analyze_commits_in_parallel(repo_git, multithreaded: bool)-> None:
252252
session.log_activity('Debug',f"Commits missing from repo {repo_id}: {len(missing_commits)}")
253253

254254

255-
if not len(missing_commits):
255+
if not len(missing_commits) or repo_id is None:
256256
#session.log_activity('Info','Type of missing_commits: %s' % type(missing_commits))
257257
return
258258

augur/tasks/github/facade_github/contributor_interfaceable/contributor_interface.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,12 @@ def get_login_with_supplemental_data(logger,db,auth, commit_data):
367367
return None
368368

369369
# Grab first result and make sure it has the highest match score
370-
match = login_json['items'][0]
370+
try:
371+
match = login_json['items'][0]
372+
except IndexError as e:
373+
logger.error(f"Ran into error {e} when parsing users with search url: {url}\n return dict: {login_json}")
374+
return None
375+
371376
for item in login_json['items']:
372377
if item['score'] > match['score']:
373378
match = item

0 commit comments

Comments
 (0)