Skip to content

Commit b6e5976

Browse files
committed
Add exception handle for illegal arg
1 parent 78d3daf commit b6e5976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: validator/api/src/main/java/tech/pegasys/teku/validator/api/GraffitiManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public Optional<Bytes32> getGraffitiFromStorage(final BLSPublicKey publicKey) {
9191
final Path filePath = graffitiPath.get().resolve(resolveFileName(publicKey));
9292
try {
9393
return Optional.of(GraffitiParser.loadFromFile(filePath)).filter(this::graffitiNotEmpty);
94-
} catch (GraffitiLoaderException e) {
94+
} catch (GraffitiLoaderException | IllegalArgumentException e) {
9595
LOG.error("Unable to read graffiti from storage.", e);
9696
return Optional.empty();
9797
}

0 commit comments

Comments
 (0)