Fixed: Null Error on Gazelle Auth Fail

pull/359/head
Qstick 7 years ago
parent 6cee554760
commit a794ed8860

@ -4,6 +4,7 @@ using NzbDrone.Common.Http;
using NzbDrone.Core.IndexerSearch.Definitions; using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Common.Cache; using NzbDrone.Common.Cache;
using NLog; using NLog;
using NzbDrone.Common.Extensions;
using NzbDrone.Common.Serializer; using NzbDrone.Common.Serializer;
namespace NzbDrone.Core.Indexers.Gazelle namespace NzbDrone.Core.Indexers.Gazelle
@ -125,7 +126,7 @@ namespace NzbDrone.Core.Indexers.Gazelle
var index = GetIndex(cookies); var index = GetIndex(cookies);
if (index.Status != "success" || string.IsNullOrWhiteSpace(index.Status)) if (index.Status.IsNullOrWhiteSpace() || index.Status != "success")
{ {
Logger.Debug("Gazelle authentication failed."); Logger.Debug("Gazelle authentication failed.");
throw new Exception("Failed to authenticate with Gazelle."); throw new Exception("Failed to authenticate with Gazelle.");

Loading…
Cancel
Save