fix: ignore analyzer rule when catching exception

This commit is contained in:
Stevan Freeborn
2026-03-24 06:50:15 -05:00
parent 9b3855e024
commit 250195c6d2
@@ -71,7 +71,9 @@ public sealed class GeminiClient : IGeminiClient
return geminiResponse.GetText();
}
#pragma warning disable CA1031 // Do not catch general exception types
catch (Exception e)
#pragma warning restore CA1031 // Do not catch general exception types
{
_logger.LogError(e, "Failed to generate content");
return errorMessage;