fixup! Fixed: Better Indexer Response Handling

pull/825/head
bakerboy448 3 years ago
parent 27ea2f2f24
commit 4e51170839

@ -188,8 +188,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
} }
catch (HttpException ex) catch (HttpException ex)
{ {
var response = ex.Response; var responseStatus = ex.Response.StatusCode;
var responseStatus = response.StatusCode;
if (responseStatus == HttpStatusCode.NotFound) if (responseStatus == HttpStatusCode.NotFound)
{ {
_logger.Error(ex, "Downloading torrent file for release failed since it no longer exists ({0})", link.AbsoluteUri); _logger.Error(ex, "Downloading torrent file for release failed since it no longer exists ({0})", link.AbsoluteUri);

Loading…
Cancel
Save