aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Lavado <anthony@lavado.ca>2020-04-01 13:17:56 -0400
committerJoshua M. Boniface <joshua@boniface.me>2020-04-05 12:44:12 -0400
commit7059761806f9e9efe84d19ddfc2fe27afd86d229 (patch)
treee3796ffbbb8b00abb0d81ca6322ee32ce72db069
parent2cde59af449ee94dc59730fd73a6407c322e9692 (diff)
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 <joshua@boniface.me>
-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 8735ca662..699997202 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;