mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 11:34:06 +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 = '@'
|
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:
|
else:
|
||||||
lastTimes.pop(0)
|
lastTimes.pop(0)
|
||||||
try:
|
try:
|
||||||
1/0
|
if not conf.detailedTracebacks:
|
||||||
|
1/0
|
||||||
text = cgitb.text((E, e, tb))
|
text = cgitb.text((E, e, tb))
|
||||||
except:
|
except:
|
||||||
text = ''.join(traceback.format_exception(E, e, tb))
|
text = ''.join(traceback.format_exception(E, e, tb))
|
||||||
|
Loading…
Reference in New Issue
Block a user