Skip to content

Commit

Permalink
further safeguards against strange forms
Browse files Browse the repository at this point in the history
  • Loading branch information
lgray committed Feb 11, 2024
1 parent 7505e93 commit 51fbc80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coffea/nanoevents/mapping/uproot.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ def _lazify_form(form, prefix, docstr=None):
"Only boolean NumpyArrays can be created dynamically if "
"missing in file!"
)
assert prefix.endswith("!load")
form["form_key"] = quote(prefix + "allowmissing,!index")
form["content"] = _lazify_form(
form["content"], prefix + "allowmissing,!content", docstr=docstr
Expand Down

0 comments on commit 51fbc80

Please sign in to comment.