Skip to content

Commit

Permalink
Filter tags for empties (fixes galaxyproject#4127)
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jun 1, 2017
1 parent 4fa184b commit ced9f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/actions/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class TagDatasetAction(DefaultJobAction):
@classmethod
def execute(cls, app, sa_session, action, job, replacement_dict):
if action.action_arguments:
tags = [t.strip() for t in action.action_arguments.get('tags', '').split(',')]
tags = [t.strip() for t in action.action_arguments.get('tags', '').split(',') if t.strip() != '']
if tags:
for dataset_assoc in job.output_datasets:
if action.output_name == '' or dataset_assoc.name == action.output_name:
Expand Down

0 comments on commit ced9f7c

Please sign in to comment.