diff --git a/src/app/services/cache_updater.py b/src/app/services/cache_updater.py index cacd005..4001dd3 100644 --- a/src/app/services/cache_updater.py +++ b/src/app/services/cache_updater.py @@ -61,7 +61,7 @@ async def cache_file(book: Book, file_type) -> Optional[CachedFile]: data = await download(book.source.id, book.remote_id, file_type) if data is None: - return None + raise Retry(defer=60) response, client, filename = data caption = get_caption(book)