File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -324,13 +324,13 @@ def registered_workflows(self) -> Dict[str, Dict]:
324324
325325 def compatible_workflows (self , feature : str ) -> Dict [str , Dict ]:
326326 """
327- Parses registered workflows to return a subset of workflows that are
327+ Filters registered workflows to return a subset of workflows that are
328328 compatible with the provided *feature*.
329329 """
330330 return {
331- workflow : workflow_config
332- for workflow , workflow_config in self .registered_workflows ().items ()
333- if workflow_config .get ("compatibility" , {}).get (feature , False )
331+ name : info
332+ for name , info in self .registered_workflows ().items ()
333+ if isinstance ( info , dict ) and info .get ("compatibility" , {}).get (feature )
334334 }
335335
336336
You can’t perform that action at this time.
0 commit comments