From d7404e9cd41d8bf9a5f403495d85b016b22715f2 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 15 Jun 2023 14:28:30 +0300 Subject: [PATCH] fixup! GazelleTracker: throw exception on empty response --- src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs b/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs index 22fd62c8b..c3f1081c5 100644 --- a/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs +++ b/src/Jackett.Common/Indexers/Abstract/GazelleTracker.cs @@ -220,7 +220,8 @@ namespace Jackett.Common.Indexers.Abstract var jsonError = JObject.Parse(response.ContentString); var errorReason = (string)jsonError["error"]; throw new Exception(errorReason); - } else if (response.ContentString.IsNullOrWhiteSpace()) + } + else if (response.ContentString.IsNullOrWhiteSpace()) { throw new Exception($"Empty response from indexer. Status code: {response.Status}"); }