aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-07-05 13:55:24 -0700
committerGitHub <noreply@github.com>2020-07-05 13:55:24 -0700
commit3d3e66c5d1e11a21e684954b0899d6971f3a406b (patch)
tree5ef560ee1bc6bb6f70abf6512ee7c769b34b552e
parentf3151e7dc740f33b833ce45958c646b44c545620 (diff)
parent942c733d4f13046cedd19fa849eec88b13d2d2c7 (diff)
Merge pull request #3513 from barronpm/plugin-exception-fix
Fix TypeLoadException during plugin load
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 531775302..f6077400d 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/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)
{