Merge pull request #3513 from barronpm/plugin-exception-fix

Fix TypeLoadException during plugin load
pull/3515/head
Anthony Lavado 4 years ago committed by GitHub
commit 3d3e66c5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -869,6 +869,11 @@ namespace Emby.Server.Implementations
Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName); Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName);
continue; continue;
} }
catch (TypeLoadException ex)
{
Logger.LogError(ex, "Error loading types from {Assembly}.", ass.FullName);
continue;
}
foreach (Type type in exportedTypes) foreach (Type type in exportedTypes)
{ {

Loading…
Cancel
Save