Stop using cgitb because it's stupid.

This commit is contained in:
Jeremy Fincher 2004-01-26 17:52:18 +00:00
parent 1d43b84cb5
commit 8f4483bd6e

View File

@ -59,7 +59,9 @@ class Formatter(logging.Formatter):
raise
if conf.supybot.log.detailedTracebacks():
try:
return cgitb.text((E, e, tb)).rstrip('\r\n')
# Cgitb has bugs, and they break the bot.
#return cgitb.text((E, e, tb)).rstrip('\r\n')
logging.Formatter.formatException(self, (E, e, tb))
except:
error('Cgitb.text raised an exception.')
return logging.Formatter.formatException(self, (E, e, tb))