Skip to content

Commit

Permalink
Fixed crash when getting services on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Klocman committed May 9, 2022
1 parent 01a9b4e commit c551065
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static IEnumerable<ServiceEntry> GetServiceEntries()
results.Add(e);
}
}
catch (Exception ex) when (ex is TypeInitializationException || ex is ManagementException || ex is ExternalException)
catch (Exception ex) when (ex is TypeInitializationException || ex is ManagementException || ex is ExternalException || ex is PlatformNotSupportedException)
{
Trace.WriteLine(@"Error while gathering services - " + ex);
}
Expand Down

0 comments on commit c551065

Please sign in to comment.