Skip to content

Commit ca42d6a

Browse files
Potential fix for pull request finding 'Generic catch clause'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent cc83135 commit ca42d6a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/services/Elastic.Documentation.Services/ChangelogService.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,13 @@ private static string SanitizeFilename(string input)
474474
}
475475
catch (Exception ex)
476476
{
477+
if (ex is OutOfMemoryException ||
478+
ex is StackOverflowException ||
479+
ex is AccessViolationException ||
480+
ex is ThreadAbortException)
481+
{
482+
throw;
483+
}
477484
_logger.LogWarning(ex, "Error fetching PR information from GitHub. Continuing with provided values.");
478485
return null;
479486
}

0 commit comments

Comments
 (0)