Skip to content

Commit edc8b16

Browse files
committed
BUG: Correct error type
Allow for either IndexError or AttributeError
1 parent c9c4b1c commit edc8b16

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/bootstrap/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ def apply(self, func, reps=1000, extra_kwargs=None):
577577
base = func(*self._args, **kwargs)
578578
try:
579579
num_params = base.shape[0]
580-
except AttributeError:
580+
except (IndexError, AttributeError):
581581
num_params = 1
582582
results = np.zeros((reps, num_params))
583583
count = 0

0 commit comments

Comments
 (0)