Mute FileTypeNotAllowed

This commit is contained in:
2022-12-07 20:53:13 +01:00
parent 6dcf78736a
commit 57f45d8329

View File

@@ -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)