mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Merge pull request #109 from iPromKnight/hotfix-throw-on-invalid-status-code
Ensure we throw
This commit is contained in:
@@ -155,8 +155,7 @@ public partial class TorrentioCrawler(
|
|||||||
|
|
||||||
if (!response.IsSuccessStatusCode)
|
if (!response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
logger.LogError("Failed to fetch {Url}", requestUrl);
|
throw new("Failed to fetch " + requestUrl);
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var json = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
|
var json = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
|
||||||
|
|||||||
Reference in New Issue
Block a user