From 05c468ea2df6a23ae9769f5d0128fecb752be251 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sat, 16 Apr 2022 16:12:51 -0500 Subject: [PATCH] fixup! Fixed: Better Indexer Response Handling --- src/NzbDrone.Core/Indexers/TorrentIndexerBase.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/TorrentIndexerBase.cs b/src/NzbDrone.Core/Indexers/TorrentIndexerBase.cs index f3a49824d..81a4cd6df 100644 --- a/src/NzbDrone.Core/Indexers/TorrentIndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/TorrentIndexerBase.cs @@ -48,8 +48,7 @@ namespace NzbDrone.Core.Indexers } catch (HttpException ex) { - var indexerResponse = ex.Response; - var indexerResponseStatus = indexerResponse.StatusCode; + var indexerResponseStatus = ex.Response.StatusCode; if (indexerResponseStatus == HttpStatusCode.NotFound) { _logger.Error(ex, "Downloading torrent file for release failed since it no longer exists ({0})", link.AbsoluteUri);