X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityLoader.kt;h=474ab578695ff85fd81596300b5f1211d4174cc1;hp=3a71772f93cf2848d484bad866d91d8b8d15eec3;hb=438378deab1514f0f608d975ef65f5b7aea44ccb;hpb=aeaed9de5909fc50949f2dfc2545c2e153cfba5c diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt index 3a71772..474ab57 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityLoader.kt @@ -1,5 +1,5 @@ /* - * Sone - IdentityLoader.java - Copyright © 2013–2019 David Roden + * Sone - IdentityLoader.kt - Copyright © 2013–2020 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,12 +48,7 @@ class IdentityLoader @Inject constructor(private val webOfTrustConnector: WebOfT } else { logger.fine { "Loading trusted identities for $ownIdentity from WoT..." } time({ stopwatch, identities -> "Loaded ${identities.size} identities for ${ownIdentity.nickname} in ${stopwatch.elapsed(MILLISECONDS) / 1000.0}s." }) { - try { - webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context) - } catch (e: Exception) { - logger.warning { "Caught $e on loading trusted identities for $ownIdentity."} - throw e - } + webOfTrustConnector.loadTrustedIdentities(ownIdentity, context?.context) } } }