From 4455a09ebf801b6fe83b67764ab22638fddf018e Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 23 Jul 2020 15:38:17 +0100 Subject: [PATCH] Getting rid of try/except --- main.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 2498d2b2..0039dd15 100644 --- a/main.py +++ b/main.py @@ -163,11 +163,8 @@ async def _ping(ctx): @is_owner() async def leave(ctx): """Leaves the guild""" - try: - await ctx.send("**Leaving the guild... Bye Bye uvu**") - await ctx.guild.leave() - except Exception as ex: - print(ex) + await ctx.send("**Leaving the guild... Bye Bye uvu**") + await ctx.guild.leave() @client.command(name='help')