From 159e5fd5d55dac24541189bea24e6f977c10a1d6 Mon Sep 17 00:00:00 2001 From: guerler Date: Wed, 2 Mar 2016 16:56:19 -0500 Subject: [PATCH] Do not create text values for failed inputs --- lib/galaxy/tools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/__init__.py b/lib/galaxy/tools/__init__.py index 631019aa0ee..e5413a2dc8a 100755 --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1714,11 +1714,11 @@ class Tool( object, Dictifiable ): try: tool_dict = input.to_dict( request_context, other_values=other_values ) tool_dict[ 'value' ] = state_inputs.get( input.name, input.get_initial_value( request_context, other_values ) ) + tool_dict[ 'text_value' ] = input.value_to_display_text( tool_dict[ 'value' ], self.app ) except Exception as e: tool_dict = input.to_dict( request_context ) log.exception('tools::to_json() - Skipping parameter expansion \'%s\': %s.' % ( input.name, e ) ) pass - tool_dict[ 'text_value' ] = input.value_to_display_text( tool_dict[ 'value' ], self.app ) sanitize( tool_dict, 'value' ) group_inputs[ input_index ] = tool_dict