mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 15:05:37 +01:00
Fix download error capture
This commit is contained in:
@@ -75,7 +75,7 @@ class FLDownloader(BaseDownloader):
|
|||||||
)
|
)
|
||||||
try:
|
try:
|
||||||
response = await client.send(request, stream=True)
|
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()
|
await client.aclose()
|
||||||
raise NotSuccess(str(e))
|
raise NotSuccess(str(e))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user