Fix download errors

This commit is contained in:
2022-12-27 18:02:11 +01:00
parent 06ab2aaaef
commit 9476e9131e

View File

@@ -73,7 +73,7 @@ async def cache_file(book: Book, file_type: str) -> Optional[CachedFile]:
try:
data = await download(book.source.id, book.remote_id, file_type)
except httpx.TimeoutException:
except httpx.HTTPError:
raise retry_exc
if data is None: