mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-22 22:10:35 +00:00
Fixed: Exception when request to SABnzbd times out
(cherry picked from commit f946d78153b85ad726a06a1140143c8beac8766d) Closes #3702 Closes #3703
This commit is contained in:
parent
f6d694acf7
commit
771325c65c
1 changed files with 5 additions and 0 deletions
|
@ -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 @@ private string ProcessRequest(HttpRequestBuilder requestBuilder, SabnzbdSettings
|
||||||
{
|
{
|
||||||
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)
|
||||||
|
|
Loading…
Reference in a new issue