Skip to content

Commit 6e312fe

Browse files
committed
Moved it to raise an error and not return no data
1 parent ed1ba7c commit 6e312fe

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

servicex_analysis_utils/materialization.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ def to_awk(deliver_dict, dask=False, iterator=False, **kwargs):
8888
if arrays:
8989
awk_arrays[sample] = ak.concatenate(arrays)
9090
else:
91-
logging.warning(f"No arrays yielded for sample {sample}. Check file content or TTree name.")
92-
awk_arrays[sample] = None
91+
raise RuntimeError(
92+
f"No arrays yielded for sample {sample}. Check file content or TTree name."
93+
)
9394
else:
9495
# file is parquet
9596
awk_arrays[sample] = ak.from_parquet(paths, **kwargs)

0 commit comments

Comments
 (0)