1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/9884af7d4918/ changeset: 9884af7d4918 user: jgoecks date: 2012-04-26 19:32:04 summary: Make history export work for optional data inputs. affected #: 1 file diff -r 0a0b01a980eac2f4c98d317bbde3ff572aca13e9 -r 9884af7d49189f1af3f8ae60931064d2abcc62cc lib/galaxy/tools/imp_exp/__init__.py --- a/lib/galaxy/tools/imp_exp/__init__.py +++ b/lib/galaxy/tools/imp_exp/__init__.py @@ -415,8 +415,13 @@ params_dict[ name ] = value job_attrs[ 'params' ] = params_dict - # Get input, output datasets. - input_datasets = [ assoc.dataset.hid for assoc in job.input_datasets ] + # -- Get input, output datasets. -- + + input_datasets = [] + for assoc in job.input_datasets: + # Optional data inputs will not have a dataset. + if assoc.dataset: + input_datasets.append( assoc.dataset.hid ) job_attrs[ 'input_datasets' ] = input_datasets output_datasets = [ assoc.dataset.hid for assoc in job.output_datasets ] job_attrs[ 'output_datasets' ] = output_datasets Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.