浏览代码

Merge pull request #2730 from Bond-009/plugincrash

Try to not crash on unsupported plugin load
Anthony Lavado 5 年之前
父节点
当前提交
c9919f4633
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -1167,7 +1167,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;