From e44eeaf5ae5276ecdb0b39bc44a8c964346bb630 Mon Sep 17 00:00:00 2001 From: zzz <zzz@i2pmail.org> Date: Sat, 28 May 2022 10:53:25 -0400 Subject: [PATCH] Router: Don't fail to start up on unchecked family key errors --- router/java/src/net/i2p/router/Router.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/Router.java b/router/java/src/net/i2p/router/Router.java index ada9d2fe91..6bded1d3c2 100644 --- a/router/java/src/net/i2p/router/Router.java +++ b/router/java/src/net/i2p/router/Router.java @@ -1069,8 +1069,9 @@ public class Router implements RouterClock.ClockShiftListener { if (!_familyKeyCryptoFail) { try { _familyKeyCrypto = new FamilyKeyCrypto(_context); - } catch (GeneralSecurityException gse) { - _log.error("Failed to initialize family key crypto", gse); + } catch (Exception e) { + // Could be IllegalArgumentException from key problems + _log.error("Failed to initialize family key crypto", e); _familyKeyCryptoFail = true; } } -- GitLab