mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
fixup! GazelleTracker: throw exception on empty response
This commit is contained in:
@@ -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}");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user