The Free Software Media System - Server Backend & API
Update Emby.Server.Implementations/Plugins/PluginManager.cs
David Ullmerb014f2309d54
diff --git a/Emby.Server.Implementations/Plugins/PluginManager.cs b/Emby.Server.Implementations/Plugins/PluginManager.csindex de4b71433a..adf62124a7 100644--- a/Emby.Server.Implementations/Plugins/PluginManager.cs+++ b/Emby.Server.Implementations/Plugins/PluginManager.cs@@ -126,6 +126,14 @@ namespace Emby.Server.Implementations.PluginsChangePluginState(plugin, PluginStatus.NotSupported);continue;}+#pragma warning disable CA1031 // Do not catch general exception types+ catch (Exception ex)+#pragma warning restore CA1031 // Do not catch general exception types+ {+ _logger.LogError(ex, "Failed to load assembly {Path}. Unknown exception was thrown. Disabling plugin.", file);+ ChangePluginState(plugin, PluginStatus.Malfunctioned);+ continue;+ }_logger.LogInformation("Loaded assembly {Assembly} from {Path}", assembly.FullName, file);yield return assembly;