History check shouldn't die if download client is not configured.

Do not log exceptron response when no errors are found
pull/2/head
Mark McDowall 11 years ago
parent d7ca33ff04
commit 2d028d9bc7

@ -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…
Cancel
Save