From e4cbb674a0021e1565879bd9826d241bcde8911b Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Wed, 17 Apr 2019 16:16:39 -0400 Subject: [PATCH] Fix for yappi output If there is no thread object, there is no thread.ident. Change-Id: I4223cd842bdf87b8b3093c16894e061c4734dde7 --- zuul/cmd/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuul/cmd/__init__.py b/zuul/cmd/__init__.py index 7911e40b01..0c2204e4f7 100755 --- a/zuul/cmd/__init__.py +++ b/zuul/cmd/__init__.py @@ -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)