diff --git a/src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdater.cs b/src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdater.cs index 106a9ce078..17492f9a73 100644 --- a/src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdater.cs +++ b/src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdater.cs @@ -233,7 +233,16 @@ protected virtual Task TagSourceRepositoryGitHubContactsIfPossibleAsync(InProgre (var targetRepository, _) = await GetTargetAsync(); IRemote remote = await _remoteFactory.CreateRemoteAsync(targetRepository); - PrStatus status = await remote.GetPullRequestStatusAsync(pr.Url); + PrStatus status; + try + { + status = await remote.GetPullRequestStatusAsync(pr.Url); + } + catch (Exception) + { + _logger.LogError($"Couldn't get status of PR {pr.Url}"); + throw; + } _logger.LogInformation("Pull request {url} is {status}", pr.Url, status); switch (status)