mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Fix download errors
This commit is contained in:
@@ -73,7 +73,7 @@ async def cache_file(book: Book, file_type: str) -> Optional[CachedFile]:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
data = await download(book.source.id, book.remote_id, file_type)
|
data = await download(book.source.id, book.remote_id, file_type)
|
||||||
except httpx.TimeoutException:
|
except httpx.HTTPError:
|
||||||
raise retry_exc
|
raise retry_exc
|
||||||
|
|
||||||
if data is None:
|
if data is None:
|
||||||
|
|||||||
Reference in New Issue
Block a user