diff --git a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs index 3918567fca..a560cbad94 100644 --- a/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs +++ b/nuget/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs @@ -62,6 +62,17 @@ internal async Task RunWithErrorHandlingAsync(string repoRoot, s UpdatedDependencies = [], }; } + catch (Exception ex) + { + analysisResult = new AnalysisResult + { + ErrorType = ErrorType.Unknown, + ErrorDetails = ex.ToString(), + UpdatedVersion = string.Empty, + CanUpdate = false, + UpdatedDependencies = [], + }; + } return analysisResult; }