Getting rid of try/except

pull/8/head
sgoudham 4 years ago
parent f1a1a55035
commit 4455a09ebf

@ -163,11 +163,8 @@ async def _ping(ctx):
@is_owner() @is_owner()
async def leave(ctx): async def leave(ctx):
"""Leaves the guild""" """Leaves the guild"""
try:
await ctx.send("**Leaving the guild... Bye Bye uvu**") await ctx.send("**Leaving the guild... Bye Bye uvu**")
await ctx.guild.leave() await ctx.guild.leave()
except Exception as ex:
print(ex)
@client.command(name='help') @client.command(name='help')

Loading…
Cancel
Save