Skip to content

Commit

Permalink
Fix the NoSuchAlgo Exception
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <jiallian@amazon.com>
  • Loading branch information
RyanL1997 committed Jul 27, 2023
1 parent 61fd9d1 commit 8e2d275
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import java.io.IOException;
import java.nio.file.Path;
import java.security.NoSuchAlgorithmException;
import java.util.List;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down Expand Up @@ -158,6 +159,8 @@ protected void handlePut(RestChannel channel, final RestRequest request, final C
return;
} catch (IOException ex) {
throw new IOException(ex);
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}

// for existing users, hash is optional
Expand Down

0 comments on commit 8e2d275

Please sign in to comment.