aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-04-01 13:17:56 -0400
committerGitHub <noreply@github.com>2020-04-01 13:17:56 -0400
commitc9919f46336cc83558a000a9d4c9fda4dbf330a2 (patch)
treed1ebc159f58fb13fe0e673d96b445a62b18cbee2
parent58900bb57e2a0dc4ca3505fe9e21419b9cf84a37 (diff)
parent147e434634bda67ffeebd6db0790f5fd652b1fc9 (diff)
Merge pull request #2730 from Bond-009/plugincrash
Try to not crash on unsupported plugin load
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index d6a572818..f3540e25e 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/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;