浏览代码

Merge pull request #3513 from barronpm/plugin-exception-fix

Fix TypeLoadException during plugin load
Anthony Lavado 5 年之前
父节点
当前提交
3d3e66c5d1
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Emby.Server.Implementations/ApplicationHost.cs

+ 5 - 0
Emby.Server.Implementations/ApplicationHost.cs

@@ -869,6 +869,11 @@ namespace Emby.Server.Implementations
                     Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName);
                     continue;
                 }
+                catch (TypeLoadException ex)
+                {
+                    Logger.LogError(ex, "Error loading types from {Assembly}.", ass.FullName);
+                    continue;
+                }
 
                 foreach (Type type in exportedTypes)
                 {