diff --git a/src/main/java/in/ashwanthkumar/gocd/github/provider/gitlab/GitLabProvider.java b/src/main/java/in/ashwanthkumar/gocd/github/provider/gitlab/GitLabProvider.java index 46c88a0..fd31af0 100644 --- a/src/main/java/in/ashwanthkumar/gocd/github/provider/gitlab/GitLabProvider.java +++ b/src/main/java/in/ashwanthkumar/gocd/github/provider/gitlab/GitLabProvider.java @@ -120,9 +120,10 @@ private PullRequestStatus getPullRequestStatus(GitConfig gitConfig, String prId, MergeRequest currentPR = pullRequestFrom(gitConfig, Integer.parseInt(prId)); return transformMergeRequestToPullRequestStatus(prSHA).apply(currentPR); } catch (Exception e) { + // ignore LOG.error(String.format("Failed to fetch PR status. %s", e.getMessage()), e); - throw new RuntimeException(String.format("Failed to fetch PR status. %s", e.getMessage()), e); } + return null; } private MergeRequest pullRequestFrom(GitConfig gitConfig, int currentPullRequestID) throws GitLabApiException {