From 7059761806f9e9efe84d19ddfc2fe27afd86d229 Mon Sep 17 00:00:00 2001 From: Anthony Lavado Date: Wed, 1 Apr 2020 13:17:56 -0400 Subject: [PATCH] Merge pull request #2730 from Bond-009/plugincrash Try to not crash on unsupported plugin load (cherry picked from commit c9919f46336cc83558a000a9d4c9fda4dbf330a2) Signed-off-by: Joshua M. Boniface --- Emby.Server.Implementations/ApplicationHost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 8735ca6621..6999972024 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -1165,7 +1165,7 @@ namespace Emby.Server.Implementations { exportedTypes = ass.GetExportedTypes(); } - catch (TypeLoadException ex) + catch (FileNotFoundException ex) { Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName); continue;