Removed traceback printing
This commit is contained in:
parent
f58e1290c7
commit
1458e3b4e9
2 changed files with 1 additions and 3 deletions
|
@ -8,7 +8,6 @@ import sys
|
|||
import discord
|
||||
import inspect
|
||||
import aiohttp
|
||||
import traceback
|
||||
|
||||
getter = re.compile(r'`(?!`)(.*?)`')
|
||||
multi = re.compile(r'```(.*?)```', re.DOTALL)
|
||||
|
@ -122,8 +121,6 @@ class Owner:
|
|||
except Exception as error:
|
||||
fmt = 'An error occurred while processing this request: ```py\n{}: {}\n```'
|
||||
await self.bot.say(fmt.format(type(error).__name__, error))
|
||||
with open("error_log", 'a') as f:
|
||||
traceback.print_tb(error.__traceback__, file=f)
|
||||
|
||||
@commands.command()
|
||||
@commands.check(checks.isOwner)
|
||||
|
|
|
@ -65,5 +65,6 @@ class Strawpoll:
|
|||
data = await response.json()
|
||||
await self.bot.say("Link for your new strawpoll: https://strawpoll.me/{}".format(data['id']))
|
||||
|
||||
|
||||
def setup(bot):
|
||||
bot.add_cog(Strawpoll(bot))
|
||||
|
|
Loading…
Reference in a new issue