Skip to content

Commit 4deb958

Browse files
committed
[Plugins] Do not log BadImageFormatExceptions
1 parent 42c341c commit 4deb958

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/KKManager.Core/Data/Plugins/PluginLoader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ void ReadPluginsAsync()
101101
{
102102
throw;
103103
}
104+
catch (BadImageFormatException)
105+
{
106+
// Not a valid .NET assembly, skip
107+
}
104108
catch (Exception ex)
105109
{
106110
Console.WriteLine($"Failed to load plugin from \"{file}\" with error: {ex.ToStringDemystified()}");

0 commit comments

Comments
 (0)