Skip to content

Commit b26cce5

Browse files
Fix removal of exception throwing in BitbucketCloudApiClient.java
Bug was introduced in pull request jenkinsci#839
1 parent 6cde189 commit b26cce5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/client/BitbucketCloudApiClient.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,10 @@ public BitbucketCommit resolveCommit(@NonNull String hash) throws IOException, I
548548
} else {
549549
return request.call();
550550
}
551-
} catch (Exception ex) {
551+
} catch (IOException | InterruptedException ex) {
552+
throw ex;
553+
}
554+
catch (Exception ex) {
552555
return null;
553556
}
554557
}

0 commit comments

Comments
 (0)