mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-10 20:22:36 +01:00
Added conf.detailedTracebacks to determine if cgitb should be used.
This commit is contained in:
parent
7d44088223
commit
954951e2d2
@ -164,6 +164,13 @@ ignores = []
|
||||
###
|
||||
prefixChars = '@'
|
||||
|
||||
###
|
||||
# detailedTracebacks: A boolean describing whether or not the bot will give
|
||||
# *extremely* detailed tracebacks. Be cautioned, this eats
|
||||
# a lot of log file space.
|
||||
###
|
||||
detailedTracebacks = True
|
||||
|
||||
###############################
|
||||
###############################
|
||||
###############################
|
||||
|
@ -141,7 +141,8 @@ def recoverableException():
|
||||
else:
|
||||
lastTimes.pop(0)
|
||||
try:
|
||||
1/0
|
||||
if not conf.detailedTracebacks:
|
||||
1/0
|
||||
text = cgitb.text((E, e, tb))
|
||||
except:
|
||||
text = ''.join(traceback.format_exception(E, e, tb))
|
||||
|
Loading…
Reference in New Issue
Block a user