mirror of
https://github.com/lidarr/Lidarr
synced 2025-03-04 18:38:14 +00:00
History check shouldn't die if download client is not configured.
Do not log exceptron response when no errors are found
This commit is contained in:
parent
d7ca33ff04
commit
2d028d9bc7
2 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,9 @@ namespace NzbDrone.Core.DecisionEngine.Specifications.RssSync
|
|||
return true;
|
||||
}
|
||||
|
||||
if (_downloadClientProvider.GetDownloadClient().GetType() == typeof (Sabnzbd))
|
||||
var downloadClient = _downloadClientProvider.GetDownloadClient();
|
||||
|
||||
if (downloadClient != null && downloadClient.GetType() == typeof (Sabnzbd))
|
||||
{
|
||||
_logger.Trace("Performing history status check on report");
|
||||
foreach (var episode in subject.Episodes)
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace NzbDrone.Host.Owin
|
|||
|
||||
public override void Write(string value)
|
||||
{
|
||||
if (value.ToLower().Contains("error") && !value.ToLower().Contains("sqlite"))
|
||||
if (value.ToLower().Contains("error") && !(value.ToLower().Contains("sqlite") || value.ToLower().Contains("\"errors\":null")))
|
||||
{
|
||||
_logger.Error(value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue