1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Fixed error in printing the error

This commit is contained in:
Phxntxm 2016-07-09 09:59:21 -05:00
parent d45b3d4ff2
commit 26fe9dee67

View file

@ -34,7 +34,7 @@ class Mod:
await self.bot.say("I have just loaded the {} module".format(module))
except Exception as e:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await bot.say(fmt.format(type(e).__name__, e))
await self.bot.say(fmt.format(type(e).__name__, e))
@commands.command()
@checks.isAdmin()
@ -48,7 +48,7 @@ class Mod:
await self.bot.say("I have just unloaded the {} module".format(module))
except Exception as e:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await bot.say(fmt.format(type(e).__name__, e))
await self.bot.say(fmt.format(type(e).__name__, e))
@commands.command()
@checks.isAdmin()
@ -63,7 +63,7 @@ class Mod:
await self.bot.say("I have just reloaded the {} module".format(module))
except Exception as e:
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
await bot.say(fmt.format(type(e).__name__, e))
await self.bot.say(fmt.format(type(e).__name__, e))
def setup(bot):