mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07: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.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.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue