This commit is contained in:
2023-06-02 20:41:38 +02:00
parent 63d8cd8628
commit f8af8670b2

View File

@@ -150,7 +150,12 @@ async def cache_file_by_book_id(
if await lock.locked() and not by_request:
raise Retry
result = await cache_file(book, file_type)
try:
result = await cache_file(book, file_type)
except Retry as e:
if by_request:
return None
raise e
if by_request:
return result