We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99f1711 commit 6f96100Copy full SHA for 6f96100
augur/util_support/node_data_file.py
@@ -78,7 +78,13 @@ def validate(self):
78
79
if not isinstance(self.branches, dict):
80
raise AugurError(
81
- f"`branches` value in {self.fname} is not a dictionary. Please check the formatting of this JSON!" )
+ f"`branches` value in {self.fname} is not a dictionary. Please check the formatting of this JSON!"
82
+ )
83
+
84
+ if not self.nodes and not self.branches:
85
+ print_err(
86
+ f"WARNING: {self.fname} has empty or nonexistent `nodes` and `branches`. Please check the formatting of this JSON!"
87
88
89
if self.validation_mode is not ValidationMode.SKIP and self.is_generated_by_incompatible_augur:
90
msg = (
0 commit comments