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:
parent
595f006f22
commit
2b9b4282f4
1 changed files with 20 additions and 13 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue