File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2844,12 +2844,10 @@ def _run_cwl_tool_job(
2844
2844
2845
2845
if os .path .exists (tool_id ):
2846
2846
raw_tool_id = os .path .basename (tool_id )
2847
- index = self .dataset_populator ._get ("tools" , data = dict (in_panel = False ))
2848
- index .raise_for_status ()
2849
- tools = index .json ()
2850
- # In panels by default, so flatten out sections...
2851
- tool_ids = [itemgetter ("id" )(_ ) for _ in tools ]
2852
- if raw_tool_id in tool_ids :
2847
+ get_response = self .dataset_populator ._get ("tools" , data = dict (tool_id = raw_tool_id ))
2848
+ get_response .raise_for_status ()
2849
+ tool_versions : List [str ] = get_response .json ()
2850
+ if tool_versions :
2853
2851
galaxy_tool_id = raw_tool_id
2854
2852
else :
2855
2853
dynamic_tool = self .dataset_populator .create_tool_from_path (tool_id )
You can’t perform that action at this time.
0 commit comments