diff --git a/src/coffea/nanoevents/factory.py b/src/coffea/nanoevents/factory.py index 2118a9231..66e5f219d 100644 --- a/src/coffea/nanoevents/factory.py +++ b/src/coffea/nanoevents/factory.py @@ -377,7 +377,7 @@ def from_root( # should use uproot.num_entries instead... nentries = tree.num_entries if entry_stop is None or entry_stop > nentries: - entry_stop = nentries + entry_stop = nentries partition_key = ( str(tree.file.uuid),