diff --git a/libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs b/libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs index 0ebe7f606e..25016a19a1 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs @@ -338,6 +338,7 @@ private async Task InterceptOAuthCardsAsync(ITurnContext turnContext, Acti return false; } +#pragma warning disable CA1031 // Do not catch general exception types try { var settings = new OAuthPromptSettings() { ConnectionName = connectionName }; @@ -357,6 +358,7 @@ private async Task InterceptOAuthCardsAsync(ITurnContext turnContext, Acti // Failures in token exchange are not fatal. They simply mean that the user needs to be shown the OAuth card. return false; } +#pragma warning restore CA1031 // Do not catch general exception types } private async Task SendTokenExchangeInvokeToSkillAsync(Activity incomingActivity, string id, string connectionName, string token, CancellationToken cancellationToken)