[Mod] Remove error when unbanning an unknown user (#2619)

Fix for #2542
This commit is contained in:
Neuro Assassin 2019-04-25 11:57:26 -04:00 committed by Will
parent 59115cd1c7
commit 7e49ce9a7b

View File

@ -508,8 +508,9 @@ class KickBanMixin(MixinMeta):
click the user and select 'Copy ID'."""
guild = ctx.guild
author = ctx.author
try:
user = await self.bot.fetch_user(user_id)
if not user:
except discord.errors.NotFound:
await ctx.send(_("Couldn't find a user with that ID!"))
return
audit_reason = get_audit_reason(ctx.author, reason)