1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-25 07:32:38 +00:00

Gracefully fail on Cardigann definitions Exceptions (#595)

This commit is contained in:
kaso17 2016-10-29 18:01:43 +02:00 committed by GitHub
parent 595f006f22
commit 2b9b4282f4

View file

@ -74,6 +74,8 @@ namespace Jackett.Services
{
logger.Info("Loading Cardigann definitions from: " + path);
try
{
DirectoryInfo d = new DirectoryInfo(path);
foreach (var file in d.GetFiles("*.yml"))
@ -91,6 +93,11 @@ namespace Jackett.Services
}
}
}
catch (Exception ex)
{
logger.Error(ex, "Error while loading Cardigann definitions: "+ ex.Message);
}
}
public IIndexer GetIndexer(string name)
{