From 39535317b60fcd4f5b826f31a2458a63444300a4 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Thu, 3 Apr 2014 14:05:01 +0200 Subject: [PATCH] Workaround for PY-12317 --- python/helpers/pydev/pydevd.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index 53978f181594..f01769b35f5c 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -992,9 +992,14 @@ class PyDB: f = f.f_back # if thread is not alive, cancel trace_dispatch processing - if not t.isAlive(): + try: + alive = t.isAlive() + except: + alive = False #Workaround for Python 3.4 http://youtrack.jetbrains.com/issue/PY-12317 + + if not alive: self.processThreadNotAlive(GetThreadId(t)) - return None # suspend tracing + return None # suspend tracing if is_file_to_ignore: return None