From febe212dace0211941a5a67535ff3e33af881851 Mon Sep 17 00:00:00 2001 From: tracyboehrer Date: Thu, 19 Sep 2024 11:51:16 -0500 Subject: [PATCH] Suppressed general exception warning (#6851) Co-authored-by: Tracy Boehrer --- libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs | 2 ++ 1 file changed, 2 insertions(+) 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)