Skip to content

Commit 435b54a

Browse files
authored
Merge pull request #293 from iExecBlockchainComputing/hotfix/handle-http-exception
Hotfix - handle http exception
2 parents 06c45e3 + 7b7311a commit 435b54a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
iexecCommonVersion=4.0.1
22
nexusUser=fake
33
nexusPassword=fake
4-
version=4.0.1
4+
version=4.0.2

src/main/java/com/iexec/worker/feign/BaseFeignClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ boolean is2xxSuccess(ResponseEntity<?> response) {
8686
}
8787

8888
boolean is4xxClientError(int status) {
89-
return HttpStatus.valueOf(status).is4xxClientError();
89+
return status > 0 && HttpStatus.valueOf(status).is4xxClientError();
9090
}
9191

9292
private void sleep(int millis) {

0 commit comments

Comments
 (0)