Skip to content

Commit

Permalink
Improving exception handling for Crypto rule (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddynaka committed Jul 26, 2021
1 parent fe5f68d commit 23dc3fe
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ private static ValidationState GetPrivatePgpKey(string secret)
return ValidationState.NoMatch;
}

if (ex.Message == "unknown PGP public key algorithm encountered")
{
return ValidationState.Unknown;
}

throw;
}
}
Expand Down

0 comments on commit 23dc3fe

Please sign in to comment.