1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

Removed traceback printing

This commit is contained in:
Phxntxm 2016-08-13 21:10:53 -05:00
parent f58e1290c7
commit 1458e3b4e9
2 changed files with 1 additions and 3 deletions

View file

@ -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)

View file

@ -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))