mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Fix
This commit is contained in:
@@ -150,7 +150,12 @@ async def cache_file_by_book_id(
|
|||||||
if await lock.locked() and not by_request:
|
if await lock.locked() and not by_request:
|
||||||
raise Retry
|
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:
|
if by_request:
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user