Skip to content

Commit e546df1

Browse files
committed
0 index and pep 8
1 parent 4688e85 commit e546df1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cogs/mod.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def log(self, **kwargs):
3030
color = discord.Color.green()
3131
if action == 'kick':
3232
if undo:
33-
raise ValueError('Cannot unkick')
33+
raise ValueError('Cannot un-kick')
3434
color = discord.Color.orange()
3535
action_string = 'kicked'
3636
icon = ':boot:'
@@ -211,8 +211,10 @@ async def _mute(self, ctx, target: discord.Member,
211211
)
212212
if len(mute_role) == 0:
213213
return await ctx.send(
214-
error=ctx.error('I couldnt find a mute role')
214+
error=ctx.error('I couldn\'t find a mute role')
215215
)
216+
else:
217+
mute_role = mute_role[0]
216218
await self.execute(
217219
ctx,
218220
target.add_roles(mute_role, reason=f'{ctx.author.id}: {reason}')

0 commit comments

Comments
 (0)