Skip to content

Commit b178fa8

Browse files
committed
pathogens: Drop support for top level compatibility declaration
Dropping based on feedback #472 (comment)
1 parent 3873d0f commit b178fa8

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

nextstrain/cli/pathogens.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -496,16 +496,8 @@ def test_compatibility() -> SetupTestResult:
496496
if compatible_workflows := self.compatible_workflows("nextstrain run"):
497497
return msg + f"\nCompatible workflows: {list(compatible_workflows.keys())}", True
498498

499-
# If no compatible workflows are listed, then check for the top level
500-
# boolean compatibility declaration
501-
try:
502-
compatibility = self.registration["compatibility"]["nextstrain run"]
503-
except (KeyError, IndexError, TypeError):
504-
if DEBUGGING:
505-
traceback.print_exc()
506-
return msg + "\n(couldn't find 'compatibility: nextstrain run: …' field)", False
507499

508-
return msg + "\nNo compatible workflows listed, please refer to pathogen docs.", bool(compatibility)
500+
return msg + "\nNo compatible workflows registered, please refer to pathogen docs.", False
509501

510502
return [
511503
('downloaded',

0 commit comments

Comments
 (0)