Commit df6b877d authored by Jerome Mariette's avatar Jerome Mariette
Browse files

No commit message

No commit message
parent e9fcdec0
......@@ -408,7 +408,9 @@ class Workflow(threading.Thread):
for class_name, obj in inspect.getmembers(sys.modules[modname], inspect.isclass):
if issubclass(obj, jflow.component.Component) and obj.__name__ != jflow.component.Component.__name__:
pckge[class_name] = modname
except:
except NameError as e:
logging.getLogger("Workflow._import_components").debug("Component <{0}> cannot be loaded: {1}".format(modname, e))
except :
logging.getLogger("Workflow._import_components").debug("Component <{0}> cannot be loaded".format(modname))
# finally import workflows shared packages
workflows_dir = os.path.dirname(os.path.dirname(inspect.getfile(self.__class__)))
......@@ -418,7 +420,9 @@ class Workflow(threading.Thread):
for class_name, obj in inspect.getmembers(sys.modules[modname], inspect.isclass):
if issubclass(obj, jflow.component.Component) and obj.__name__ != jflow.component.Component.__name__:
pckge[class_name] = modname
except:
except NameError as e:
logging.getLogger("Workflow._import_components").debug("Component <{0}> cannot be loaded: {1}".format(modname, e))
except :
logging.getLogger("Workflow._import_components").debug("Component <{0}> cannot be loaded".format(modname))
return pckge
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment