1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-01-05 06:51:53 +00:00

Fixed: Exception when request to SABnzbd times out

This commit is contained in:
Mark McDowall 2023-05-20 16:59:06 -07:00
parent 9c5a07f62a
commit f946d78153

View file

@ -1,5 +1,6 @@
using System;
using System;
using System.Net;
using System.Net.Http;
using Newtonsoft.Json.Linq;
using NLog;
using NzbDrone.Common.Extensions;
@ -188,6 +189,10 @@ namespace NzbDrone.Core.Download.Clients.Sabnzbd
{
throw new DownloadClientException("Unable to connect to SABnzbd, {0}", ex, ex.Message);
}
catch (HttpRequestException ex)
{
throw new DownloadClientUnavailableException("Unable to connect to SABnzbd, {0}", ex, ex.Message);
}
catch (WebException ex)
{
if (ex.Status == WebExceptionStatus.TrustFailure)