mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-24 07:58:50 -05:00
AssertionError instead of RuntimeException
This commit is contained in:
parent
79e356e04f
commit
08afe42ea6
@ -219,7 +219,7 @@ public class KeyFormattingUtils {
|
|||||||
// NOTE: Even though v3 keys are not imported we need to support both fingerprints for
|
// NOTE: Even though v3 keys are not imported we need to support both fingerprints for
|
||||||
// display/comparison before import
|
// display/comparison before import
|
||||||
if (fingerprint.length != 16 && fingerprint.length != 20) {
|
if (fingerprint.length != 16 && fingerprint.length != 20) {
|
||||||
throw new RuntimeException("No valid v3 or v4 fingerprint!");
|
throw new AssertionError("No valid v3 or v4 fingerprint!");
|
||||||
}
|
}
|
||||||
|
|
||||||
return Hex.toHexString(fingerprint).toLowerCase(Locale.ENGLISH);
|
return Hex.toHexString(fingerprint).toLowerCase(Locale.ENGLISH);
|
||||||
|
Loading…
Reference in New Issue
Block a user