Commit 7b163e4c authored by Jerome Mariette's avatar Jerome Mariette
Browse files

better handle of errors

parent 4bcf9d83
......@@ -423,8 +423,8 @@ class Workflow(threading.Thread):
pckge[class_name] = modname
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))
except Exception as e:
logging.getLogger("Workflow._import_components").debug("Component <{0}> cannot be loaded: {1}".format(modname, e))
return pckge
def _import(self, module, symbols):
......
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