mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Fixed: Null Error on Gazelle Auth Fail
This commit is contained in:
@@ -4,6 +4,7 @@ using NzbDrone.Common.Http;
|
||||
using NzbDrone.Core.IndexerSearch.Definitions;
|
||||
using NzbDrone.Common.Cache;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Common.Serializer;
|
||||
|
||||
namespace NzbDrone.Core.Indexers.Gazelle
|
||||
@@ -125,7 +126,7 @@ namespace NzbDrone.Core.Indexers.Gazelle
|
||||
|
||||
var index = GetIndex(cookies);
|
||||
|
||||
if (index.Status != "success" || string.IsNullOrWhiteSpace(index.Status))
|
||||
if (index.Status.IsNullOrWhiteSpace() || index.Status != "success")
|
||||
{
|
||||
Logger.Debug("Gazelle authentication failed.");
|
||||
throw new Exception("Failed to authenticate with Gazelle.");
|
||||
|
||||
Reference in New Issue
Block a user