forked from cswimr/SeaCogs
fix(bible): pylint fixes
This commit is contained in:
parent
e1746281c8
commit
005d0c1c8b
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@
|
|||
# ____) | __/ (_| \__ \\ V V /| | | | | | | | | | | | __/ |
|
||||
# |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_|
|
||||
|
||||
import json
|
||||
import logging
|
||||
import random
|
||||
|
||||
|
@ -37,7 +36,7 @@ class Bible(commands.Cog):
|
|||
book_name = book_name.title()
|
||||
books = await self._get_books(bible_id)
|
||||
for book in books:
|
||||
if book_name == book["abbreviation"] or book_name == book["name"]:
|
||||
if book_name in (book["abbreviation"], book["name"]):
|
||||
return book["id"]
|
||||
raise ValueError(f"Book {book_name} not found.")
|
||||
|
||||
|
|
Loading…
Reference in a new issue