Skip to content

Commit a1f20f0

Browse files
tracyboehrerTracy Boehrer
andcommitted
Suppressed general exception warning (#6851)
Co-authored-by: Tracy Boehrer <[email protected]>
1 parent c743989 commit a1f20f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/Microsoft.Bot.Builder.Dialogs/SkillDialog.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ private async Task<bool> InterceptOAuthCardsAsync(ITurnContext turnContext, Acti
338338
return false;
339339
}
340340

341+
#pragma warning disable CA1031 // Do not catch general exception types
341342
try
342343
{
343344
var settings = new OAuthPromptSettings() { ConnectionName = connectionName };
@@ -357,6 +358,7 @@ private async Task<bool> InterceptOAuthCardsAsync(ITurnContext turnContext, Acti
357358
// Failures in token exchange are not fatal. They simply mean that the user needs to be shown the OAuth card.
358359
return false;
359360
}
361+
#pragma warning restore CA1031 // Do not catch general exception types
360362
}
361363

362364
private async Task<bool> SendTokenExchangeInvokeToSkillAsync(Activity incomingActivity, string id, string connectionName, string token, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)