From 8ee4d1e15caeec7a0a6575fe223f35c10d41c57b Mon Sep 17 00:00:00 2001 From: Ben Wynne <bwynne@cern.ch> Date: Mon, 7 Dec 2020 15:50:27 +0100 Subject: [PATCH] Small fix to catch case when there was no previous entry --- Tools/PyUtils/python/scripts/diff_root_files.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Tools/PyUtils/python/scripts/diff_root_files.py b/Tools/PyUtils/python/scripts/diff_root_files.py index 3d30436014c..c2089d6a105 100644 --- a/Tools/PyUtils/python/scripts/diff_root_files.py +++ b/Tools/PyUtils/python/scripts/diff_root_files.py @@ -248,7 +248,10 @@ def main(args): new_dump_iter = fnew.dump(args.tree_name, itr_entries_new) def leafname_fromdump(entry): - return '.'.join([s for s in entry[2] if not s.isdigit()]) + if entry is None: + return None + else: + return '.'.join([s for s in entry[2] if not s.isdigit()]) @memoize def skip_leaf(name_from_dump, skip_leaves): -- GitLab