mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-14 12:55:08 -05:00
AssertionError instead of RuntimeException
This commit is contained in:
parent
0456e04c1a
commit
1651f9fb61
@ -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