Skip to content

Commit 6f96100

Browse files
wip
1 parent 99f1711 commit 6f96100

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

augur/util_support/node_data_file.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,13 @@ def validate(self):
7878

7979
if not isinstance(self.branches, dict):
8080
raise AugurError(
81-
f"`branches` value in {self.fname} is not a dictionary. Please check the formatting of this JSON!" )
81+
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+
)
8288

8389
if self.validation_mode is not ValidationMode.SKIP and self.is_generated_by_incompatible_augur:
8490
msg = (

0 commit comments

Comments
 (0)