diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-07-05 13:55:24 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-05 13:55:24 -0700 |
| commit | 3d3e66c5d1e11a21e684954b0899d6971f3a406b (patch) | |
| tree | 5ef560ee1bc6bb6f70abf6512ee7c769b34b552e | |
| parent | f3151e7dc740f33b833ce45958c646b44c545620 (diff) | |
| parent | 942c733d4f13046cedd19fa849eec88b13d2d2c7 (diff) | |
Merge pull request #3513 from barronpm/plugin-exception-fix
Fix TypeLoadException during plugin load
| -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 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) { |
