mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 16:13:19 +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 @@ public virtual bool IsSatisfiedBy(RemoteEpisode subject, SearchCriteriaBase sear
|
|||
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 @@ public override void Write(char[] buffer)
|
|||
|
||||
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…
Reference in a new issue