Skip to content

Commit 87e7a52

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 9cf2741 commit 87e7a52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/Elastic.Documentation.Services/Changelog/GitHubPrService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static GitHubPrService()
8484
_logger.LogWarning("Request timeout fetching PR info from GitHub");
8585
return null;
8686
}
87-
catch (Exception ex)
87+
catch (Exception ex) when (ex is not OutOfMemoryException && ex is not StackOverflowException && ex is not ThreadAbortException)
8888
{
8989
_logger.LogWarning(ex, "Unexpected error fetching PR info from GitHub");
9090
return null;

0 commit comments

Comments
 (0)