Fix loading workflows with steps without default label

Prior to https://github.com/galaxyproject/galaxy/pull/7422
we'd call str(default_label), so if `default_label` was None
we'd get 'None'. Fixes part of https://github.com/galaxyproject/galaxy/issues/7447
This commit is contained in:
mvdbeek
2019-03-02 16:13:54 +01:00
parent a12d9e367c
commit 5142d0df07
+1 -1
View File
@@ -1012,7 +1012,7 @@ class WorkflowContentsManager(UsesAnnotations):
if not module.label and module.type in ['data_input', 'data_collection_input']:
new_state = safe_loads(state)
default_label = new_state.get('name')
if util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']:
if default_label and util.unicodify(default_label).lower() not in ['input dataset', 'input dataset collection']:
step.label = module.label = default_label