Skip to content

Commit

Permalink
Suppressed general exception warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Tracy Boehrer committed Sep 19, 2024
1 parent 6d584df commit 4515efe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ private async Task<bool> InterceptOAuthCardsAsync(ITurnContext turnContext, Acti
return false;
}

#pragma warning disable CA1031 // Do not catch general exception types
try
{
var settings = new OAuthPromptSettings() { ConnectionName = connectionName };
Expand All @@ -357,6 +358,7 @@ private async Task<bool> 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<bool> SendTokenExchangeInvokeToSkillAsync(Activity incomingActivity, string id, string connectionName, string token, CancellationToken cancellationToken)
Expand Down

0 comments on commit 4515efe

Please sign in to comment.