Skip to content

Commit

Permalink
Print Value- of Import error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvdijk committed Dec 13, 2019
1 parent 6123276 commit cae3400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdstudio_workflow/workflow_task_types/task_python_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ def load(self):
func = getattr(imodule, function_name)
logging.debug(
'Load task runner function: {0} from module: {1}'.format(function_name, module_name))
except (ValueError, ImportError):
msg = 'Unable to load task runner function: "{0}" from module: "{1}"'
logging.error(msg.format(function_name, module_name))
except (ValueError, ImportError) as e:
msg = 'Unable to load task runner function: "{0}" from module: "{1}": {2}'
logging.error(msg.format(function_name, module_name, e))
else:
logging.error('No Python path to function or class defined')

Expand Down

0 comments on commit cae3400

Please sign in to comment.