Skip to content

Commit

Permalink
Fix plugin configuration falure (#1564)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao-Jin authored Apr 16, 2020
1 parent 62c8c09 commit d210797
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/neo/Plugins/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ private static void ConfigWatcher_Changed(object sender, FileSystemEventArgs e)
switch (GetExtension(e.Name))
{
case ".json":
Plugins.FirstOrDefault(p => p.ConfigFile == e.FullPath)?.Configure();
try
{
Plugins.FirstOrDefault(p => p.ConfigFile == e.FullPath)?.Configure();
}
catch (FormatException) { }
break;
case ".dll":
if (e.ChangeType != WatcherChangeTypes.Created) return;
Expand Down

0 comments on commit d210797

Please sign in to comment.