Skip to content

Commit 6ab1d59

Browse files
committed
fix: removed catch of non-existent exception
1 parent c0751f1 commit 6ab1d59

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/edu/cornell/mannlib/orcidclient/actions/version_2_0/ReadProfileAction.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ public OrcidProfile execute(AccessToken accessToken)
6666
} catch (URISyntaxException e) {
6767
throw new OrcidClientException(
6868
"API_BASE_URL is not syntactically valid.", e);
69-
} catch (HttpResponseException e) {
70-
// Bad status code? Something funky.
71-
log.error("HttpResponse status code: " + e.getStatusCode());
72-
throw new OrcidClientException(
73-
"Failed to read profile. HTTP status code="
74-
+ e.getStatusCode(), e);
7569
} catch (IOException e) {
7670
throw new OrcidClientException("Failed to read profile", e);
7771
}

0 commit comments

Comments
 (0)