Further cleanup to make Deepsource happy

This commit is contained in:
Michał Gdula 2023-09-11 23:32:21 +01:00
parent 42a41509c5
commit dae2d4901c
5 changed files with 21 additions and 19 deletions

View file

@ -17,12 +17,14 @@ class Animals(commands.Cog):
animal_choice = animal_choice.lower().strip() or None
if not animal_choice:
error = f"You need to specify an animal! Try one of these: {', '.join(TINYFOX_ANIMALS)}"
error = f"You need to specify an animal! " \
f"Try one of these: {', '.join(TINYFOX_ANIMALS)}"
await ctx.reply(embed=error_message(error))
return
if animal_choice not in TINYFOX_ANIMALS:
error = f"That animal doesn't exist! Try one of these: {', '.join(TINYFOX_ANIMALS)}"
error = f"That animal doesn't exist! " \
f"Try one of these: {', '.join(TINYFOX_ANIMALS)}"
await ctx.reply(embed=error_message(error))
return