diff --git a/src/modules/Elsa.Identity/Services/DefaultApplicationCredentialsValidator.cs b/src/modules/Elsa.Identity/Services/DefaultApplicationCredentialsValidator.cs index f30671229..6ddfe646f 100644 --- a/src/modules/Elsa.Identity/Services/DefaultApplicationCredentialsValidator.cs +++ b/src/modules/Elsa.Identity/Services/DefaultApplicationCredentialsValidator.cs @@ -77,7 +77,7 @@ public class DefaultApplicationCredentialsValidator : IApplicationCredentialsVal application.HashedApiKeySalt = previousHashedApiKeySalt; throw; } - catch (InvalidOperationException e) + catch (Exception e) { application.HashedApiKey = previousHashedApiKey; application.HashedApiKeySalt = previousHashedApiKeySalt;