fix pydevd_failed typo and it was not reset to True

This commit is contained in:
Kamil Sopko
2016-03-24 23:23:27 +01:00
parent e96ee1af29
commit cac2f74be2

View File

@@ -7,7 +7,7 @@ class Worker(QtCore.QObject):
""" """
# avoid multiple tests for debug availability # avoid multiple tests for debug availability
pydef_failed = False pydevd_failed = False
def __init__(self, app, name=None): def __init__(self, app, name=None):
super(Worker, self).__init__() super(Worker, self).__init__()
@@ -21,12 +21,12 @@ class Worker(QtCore.QObject):
:return: :return:
""" """
if not self.pydef_failed: if not self.pydevd_failed:
try: try:
import pydevd import pydevd
pydevd.settrace(suspend=False, trace_only_current_thread=True) pydevd.settrace(suspend=False, trace_only_current_thread=True)
except ImportError: except ImportError:
pass self.pydevd_failed=True
def run(self): def run(self):