mirror of
https://github.com/Readarr/Readarr
synced 2026-04-24 22:00:57 +02:00
Fixed: Null Error on Gazelle Auth Fail
This commit is contained in:
parent
6cee554760
commit
a794ed8860
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@
|
|||
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 @@ private void Authenticate()
|
|||
|
||||
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.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue