mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Fix download error capture
This commit is contained in:
@@ -75,7 +75,7 @@ class FLDownloader(BaseDownloader):
|
||||
)
|
||||
try:
|
||||
response = await client.send(request, stream=True)
|
||||
except (asyncio.CancelledError, httpx.ReadError, httpx.ConnectError) as e:
|
||||
except (asyncio.CancelledError, httpx.HTTPError) as e:
|
||||
await client.aclose()
|
||||
raise NotSuccess(str(e))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user