mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +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
|
raise
|
||||||
if conf.supybot.log.detailedTracebacks():
|
if conf.supybot.log.detailedTracebacks():
|
||||||
try:
|
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:
|
except:
|
||||||
error('Cgitb.text raised an exception.')
|
error('Cgitb.text raised an exception.')
|
||||||
return logging.Formatter.formatException(self, (E, e, tb))
|
return logging.Formatter.formatException(self, (E, e, tb))
|
||||||
|
Loading…
Reference in New Issue
Block a user