Catch Stream closed
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
2025-04-01 18:24:25 +02:00
parent 15ced9aed8
commit 99a3f2614d
2 changed files with 14 additions and 3 deletions

View File

@ -48,8 +48,17 @@ internal class HttpDownloadClient : DownloadClient
{
return new RequestResult(response.StatusCode, null, Stream.Null);
}
Stream stream = response.Content.ReadAsStream();
Stream stream;
try
{
stream = response.Content.ReadAsStream();
}
catch (Exception e)
{
Log.Error(e);
return new RequestResult(HttpStatusCode.InternalServerError, null, Stream.Null);
}
HtmlDocument? document = null;