mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Fix book getting
This commit is contained in:
@@ -117,6 +117,9 @@ async def cache_file_by_book_id(
|
||||
return None
|
||||
raise Retry(defer=15)
|
||||
|
||||
if book is None:
|
||||
return None
|
||||
|
||||
if file_type not in book.available_types:
|
||||
raise FileTypeNotAllowed(f"{file_type} not in {book.available_types}!")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user