mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 14:45:36 +01:00
Mute FileTypeNotAllowed
This commit is contained in:
@@ -121,7 +121,7 @@ async def cache_file_by_book_id(
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
if file_type not in book.available_types:
|
if file_type not in book.available_types:
|
||||||
raise FileTypeNotAllowed(f"{file_type} not in {book.available_types}!")
|
return None
|
||||||
|
|
||||||
lock = r_client.lock(f"{book_id}_{file_type}", blocking_timeout=5)
|
lock = r_client.lock(f"{book_id}_{file_type}", blocking_timeout=5)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user