Skip to content

Commit

Permalink
Fix failing import/export test for group_tag changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 25, 2018
1 parent e5c5322 commit 6677e7b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/galaxy/tools/wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ def __init__(self, dataset, datatypes_registry=None, tool=None, name=None, datas
self.unsanitized = dataset
self.dataset = wrap_with_safe_string(dataset, no_wrap_classes=ToolParameterValueWrapper)
self.metadata = self.MetadataWrapper(dataset.metadata)
self.groups = {tag.user_value.lower() for tag in dataset.tags if tag.user_tname == 'group'}
if hasattr(dataset, 'tags'):
self.groups = {tag.user_value.lower() for tag in dataset.tags if tag.user_tname == 'group'}
else:
# May be a 'FakeDatasetAssociation'
self.groups = set()
self.datatypes_registry = datatypes_registry
self.false_path = getattr(dataset_path, "false_path", None)
self.false_extra_files_path = getattr(dataset_path, "false_extra_files_path", None)
Expand Down

0 comments on commit 6677e7b

Please sign in to comment.