|
@@ -421,7 +421,7 @@ def cry():
|
|
# get a map of threads by their ID so we can print their names
|
|
# get a map of threads by their ID so we can print their names
|
|
# during the traceback dump
|
|
# during the traceback dump
|
|
for t in threading.enumerate():
|
|
for t in threading.enumerate():
|
|
- if t.ident:
|
|
|
|
|
|
+ if getattr(t, "ident", None):
|
|
tmap[t.ident] = t
|
|
tmap[t.ident] = t
|
|
else:
|
|
else:
|
|
main_thread = t
|
|
main_thread = t
|