mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Stop using cgitb because it's stupid.
This commit is contained in:
parent
1d43b84cb5
commit
8f4483bd6e
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user