Skip to content

Commit 3873d0f

Browse files
joverlee521tsibley
andauthored
Apply suggestions from code review
Co-authored-by: Thomas Sibley <tsibley@fredhutch.org>
1 parent e701c24 commit 3873d0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nextstrain/cli/pathogens.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)