Skip to content

Commit b8c3ddf

Browse files
committed
changed multi_source to entity_source_summary
1 parent d850a90 commit b8c3ddf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sz_tools/sz_snapshot

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,11 @@ def check_stat_pack(stats_file_name, csv_file_name, args):
510510
abort = False
511511
stat_pack = json.load(open(stats_file_name))
512512
prior_status = "unknown"
513-
entity_count = 0
513+
entity_count = "?"
514514
if stat_pack.get("PROCESS"):
515515
prior_status = stat_pack["PROCESS"]["STATUS"]
516-
entity_count = stat_pack["TOTALS"]["ENTITY_COUNT"]
516+
if stat_pack.get("TOTALS"):
517+
entity_count = stat_pack["TOTALS"].get("ENTITY_COUNT", "?")
517518
print(f"\n{prior_status} snapshot file exists with {entity_count} entities processed!")
518519
if args.quiet:
519520
print("PRIOR FILES WILL BE OVERWRITTEN")

0 commit comments

Comments
 (0)