diff options
author | EthanCJ-git <59930903+EthanCJ-git@users.noreply.github.com> | 2020-09-03 17:46:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 16:46:56 -0500 |
commit | 912790315033d8a2b8d525eb36db410a851ca1f4 (patch) | |
tree | 4a3fa95515a0fbb059e09b81f48b6be7a69a6fde | |
parent | 1462f7741da034d913540bb5eff08ee695cd5f9f (diff) | |
download | numpy-912790315033d8a2b8d525eb36db410a851ca1f4.tar.gz |
MAINT: added exception chaining in shape_base.py (gh-17240)
This edit is relation to issue gh-15986.
Chained exception in shape_base.py
-rw-r--r-- | numpy/lib/shape_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 127338975..cbc4641d8 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -870,7 +870,7 @@ def split(ary, indices_or_sections, axis=0): N = ary.shape[axis] if N % sections: raise ValueError( - 'array split does not result in an equal division') + 'array split does not result in an equal division') from None return array_split(ary, indices_or_sections, axis) |