Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Apr 22, 2020
1 parent 5a66c73 commit c59194b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Analogy/Managers/FactoriesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,17 @@ private ExternalDataProviders()
{
try
{
analogyAssemblies.AddRange(Directory.EnumerateFiles(folder, @"*Analogy.LogViewer.*.dll", SearchOption.TopDirectoryOnly).ToList());
if (Directory.Exists(folder))
analogyAssemblies.AddRange(Directory.EnumerateFiles(folder, @"*Analogy.LogViewer.*.dll",
SearchOption.TopDirectoryOnly).ToList());
}
catch (Exception e)
{
AnalogyLogger.Instance.LogException(e,nameof(ExternalDataProviders),$"Error probing folder {folder}. Error: {e.Message}");
AnalogyLogger.Instance.LogException(e, nameof(ExternalDataProviders),
$"Error probing folder {folder}. Error: {e.Message}");
}
}


}
foreach (string aFile in analogyAssemblies)
Expand Down

0 comments on commit c59194b

Please sign in to comment.