|
|
@ -1,5 +1,6 @@
|
|
|
|
using System;
|
|
|
|
using System;
|
|
|
|
using System.Net;
|
|
|
|
using System.Net;
|
|
|
|
|
|
|
|
using System.Net.Http;
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
using NLog;
|
|
|
|
using NLog;
|
|
|
|
using NzbDrone.Common.Extensions;
|
|
|
|
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);
|
|
|
|
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)
|
|
|
|
catch (WebException ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (ex.Status == WebExceptionStatus.TrustFailure)
|
|
|
|
if (ex.Status == WebExceptionStatus.TrustFailure)
|
|
|
|