diff --git a/src/log.py b/src/log.py index f16d4fca9..75937f6da 100644 --- a/src/log.py +++ b/src/log.py @@ -61,7 +61,7 @@ class Formatter(logging.Formatter): try: # Cgitb has bugs, and they break the bot. #return cgitb.text((E, e, tb)).rstrip('\r\n') - logging.Formatter.formatException(self, (E, e, tb)) + return logging.Formatter.formatException(self, (E, e, tb)) except: error('Cgitb.text raised an exception.') return logging.Formatter.formatException(self, (E, e, tb))