Skip to content

Commit

Permalink
Merge pull request #82 from codecov/fix/bb-key-error
Browse files Browse the repository at this point in the history
Handle key error for now
  • Loading branch information
trent-codecov authored Aug 31, 2023
2 parents 34540e4 + 4c3de87 commit 36b9432
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion services/comparison/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,14 @@ async def get_behind_by(self):
),
)
return None

except KeyError:
log.warning(
"Error fetching base branch from Git provider",
extra=dict(
branch=branch_to_get,
),
)
return None
self._branch = branch_response

distance = await self.repository_service.get_distance_in_commits(
Expand Down

0 comments on commit 36b9432

Please sign in to comment.