mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Workaround for bug in cgitb.
This commit is contained in:
parent
d4136073e1
commit
a3edca49a0
@ -64,7 +64,11 @@ class Formatter(logging.Formatter):
|
||||
if issubclass(e.__class__, exn):
|
||||
raise
|
||||
if conf.detailedTracebacks:
|
||||
return cgitb.text((E, e, tb)).rstrip('\r\n')
|
||||
try:
|
||||
return cgitb.text((E, e, tb)).rstrip('\r\n')
|
||||
except:
|
||||
log.error('Cgitb.text raised an exception.')
|
||||
return logging.Formatter.formatException(self, (E, e, tb))
|
||||
else:
|
||||
return logging.Formatter.formatException(self, (E, e, tb))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user