Merge "Fixed format_exception vs format_exec bug"

This commit is contained in:
Jenkins 2017-02-15 16:54:45 +00:00 committed by Gerrit Code Review
commit c3f341eb29
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,