From e936e49b0e9478c4c27102eccd4001b285647ee3 Mon Sep 17 00:00:00 2001 From: Jose Moreno Date: Tue, 2 Jul 2024 19:16:40 +0200 Subject: [PATCH] added number of items --- scripts/verify_checklist.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/verify_checklist.py b/scripts/verify_checklist.py index 2dce82b61..e577edced 100644 --- a/scripts/verify_checklist.py +++ b/scripts/verify_checklist.py @@ -53,6 +53,9 @@ def verify_file(input_file): try: with open(input_file) as f: checklist = json.load(f) + if 'items' in checklist: + if args.verbose: + print("DEBUG: {0} items found in JSON file {1}".format(len(checklist['items']), input_file)) except Exception as e: print("ERROR: Error when processing JSON file, nothing changed", input_file, ":", str(e)) sys.exit(1)