Fixed format_exception vs format_exec bug

Change-Id: I32c5b6f5754bc62f54f5b042e00b54c4ccf99239
This commit is contained in:
Nathan Buckner 2016-09-23 12:33:54 -05:00
parent af90c22808
commit df8e63de08
1 changed files with 2 additions and 1 deletions

View File

@ -266,7 +266,8 @@ class Consumer(Process):
for record in handler._records:
if record.exc_info:
record.msg = "{0}\n{1}".format(
record.msg, traceback.format_exc(record.exc_info))
record.msg, traceback.format_exception(
*record.exc_info))
record.exc_info = None
dic = {
"result": result,