Fix for yappi output

If there is no thread object, there is no thread.ident.

Change-Id: I4223cd842bdf87b8b3093c16894e061c4734dde7
This commit is contained in:
David Shrewsbury 2019-04-17 16:16:39 -04:00
parent dc9347c122
commit e4cbb674a0
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ def stack_dump_handler(signum, frame):
thread_name = thread.name
thread_is_daemon = str(thread.daemon)
else:
thread_name = thread.ident
thread_name = '(Unknown)'
thread_is_daemon = '(Unknown)'
log_str += "Thread: %s %s d: %s\n"\
% (thread_id, thread_name, thread_is_daemon)