Skip to content

Commit

Permalink
use length_one_array
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Nov 27, 2023
1 parent fa7a401 commit b23fbc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dask_awkward/lib/io/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,12 @@ class FromMapException:

def as_awkward_array(self):
if self._exception is None:
return ak.Array(self._form.length_zero_array(highlevel=False))
return ak.Array(self._form.length_one_array(highlevel=False))

return ak.Array(
[
{
"args": [str(a) for a in str(self._args)],
"args": [str(a) for a in self._args],
"kwargs": [[k, str(v)] for k, v in self._kwargs.items()],
"exception": str(self._exception.__name__),
"message": str(self._error),
Expand Down

0 comments on commit b23fbc1

Please sign in to comment.