fixup! GazelleTracker: throw exception on empty response

This commit is contained in:
Bogdan
2023-06-15 14:28:30 +03:00
parent 373b15cb8e
commit d7404e9cd4

View File

@@ -220,7 +220,8 @@ namespace Jackett.Common.Indexers.Abstract
var jsonError = JObject.Parse(response.ContentString); var jsonError = JObject.Parse(response.ContentString);
var errorReason = (string)jsonError["error"]; var errorReason = (string)jsonError["error"];
throw new Exception(errorReason); 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}"); throw new Exception($"Empty response from indexer. Status code: {response.Status}");
} }