mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Gracefully fail on Cardigann definitions Exceptions (#595)
This commit is contained in:
@@ -74,6 +74,8 @@ namespace Jackett.Services
|
|||||||
{
|
{
|
||||||
logger.Info("Loading Cardigann definitions from: " + path);
|
logger.Info("Loading Cardigann definitions from: " + path);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
DirectoryInfo d = new DirectoryInfo(path);
|
DirectoryInfo d = new DirectoryInfo(path);
|
||||||
|
|
||||||
foreach (var file in d.GetFiles("*.yml"))
|
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)
|
public IIndexer GetIndexer(string name)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user