mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-23 15:38: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
|
||||
// display/comparison before import
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user