From 4515efe64c734a693c7a886b729a547363bf3174 Mon Sep 17 00:00:00 2001 From: Tracy Boehrer Date: Thu, 19 Sep 2024 11:50:45 -0500 Subject: [PATCH] Suppressed general exception warning --- 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)