diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-07-05 15:36:29 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-07-05 15:38:35 -0400 |
| commit | 942c733d4f13046cedd19fa849eec88b13d2d2c7 (patch) | |
| tree | 111360ec30e5fca7aa48efc2449829b2e8cb09cd /Emby.Server.Implementations | |
| parent | fb91e4fc23a81631d06f0f90812eb0d27e6de815 (diff) | |
Fix TypeLoadException during plugin load
Diffstat (limited to 'Emby.Server.Implementations')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 18b6834ef..fe1961b70 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -871,6 +871,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) { |
