Skip to content

Commit 8b5ba43

Browse files
Potential fix for pull request finding 'CodeQL / Generic catch clause'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 4ade24c commit 8b5ba43

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Dashboard/AI/ChatEndpoints.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ await HandleSessionEventAsync(evt, ctx, toolTracker, telemetry, copilotFactory.D
473473
await ctx.Response.WriteAsync($"data: {donePayload}\n\n");
474474
await ctx.Response.Body.FlushAsync();
475475
}
476-
catch { }
476+
catch (OperationCanceledException) { }
477+
catch (ObjectDisposedException) { }
477478
}
478479
catch (Exception ex)
479480
{

0 commit comments

Comments
 (0)