mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-03-11 08:50:43 +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):
|
if issubclass(e.__class__, exn):
|
||||||
raise
|
raise
|
||||||
if conf.detailedTracebacks:
|
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:
|
else:
|
||||||
return logging.Formatter.formatException(self, (E, e, tb))
|
return logging.Formatter.formatException(self, (E, e, tb))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user