commit/galaxy-central: dan: Fix for ToolEvaluator with optional Dataset Input selected.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/3158b15d961f/ Changeset: 3158b15d961f User: dan Date: 2014-02-20 17:07:16 Summary: Fix for ToolEvaluator with optional Dataset Input selected. Affected #: 1 file diff -r 3789ce7ddf1ac171a10956989818b4425486c44d -r 3158b15d961f6bef5db25b26d4bc0593f1b58d57 lib/galaxy/tools/evaluation.py --- a/lib/galaxy/tools/evaluation.py +++ b/lib/galaxy/tools/evaluation.py @@ -181,9 +181,11 @@ tool=self, name=input.name ) - real_path = dataset.file_name - if real_path in input_dataset_paths: - wrapper_kwds[ "dataset_path" ] = input_dataset_paths[ real_path ] + if dataset: + #A None dataset does not have a filename + real_path = dataset.file_name + if real_path in input_dataset_paths: + wrapper_kwds[ "dataset_path" ] = input_dataset_paths[ real_path ] input_values[ input.name ] = \ DatasetFilenameWrapper( dataset, **wrapper_kwds ) elif isinstance( input, SelectToolParameter ): 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.
participants (1)
-
commits-noreply@bitbucket.org