Skip to content

Commit

Permalink
Suppressed general exception warning (#6851)
Browse files Browse the repository at this point in the history
Co-authored-by: Tracy Boehrer <[email protected]>
  • Loading branch information
tracyboehrer and Tracy Boehrer committed Sep 19, 2024
1 parent c743989 commit a1f20f0
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 a1f20f0

Please sign in to comment.