diff options
author | Abhishek Singh <34937403+devhpes@users.noreply.github.com> | 2020-10-04 01:42:11 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 01:42:11 +0530 |
commit | fe01a9b1cca286f67e01807786b991dd22b1b7f7 (patch) | |
tree | f02c36ad8664c749b8b36b875f825d99209892bd /numpy/lib/format.py | |
parent | 88eda2f2f430e2f3b7e580fe38ac31e4c5fac942 (diff) | |
download | numpy-fe01a9b1cca286f67e01807786b991dd22b1b7f7.tar.gz |
fix exception chaining in format.py
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r-- | numpy/lib/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index afbd3784a..5d951e262 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -746,7 +746,7 @@ def read_array(fp, allow_pickle=False, pickle_kwargs=None): # Friendlier error message raise UnicodeError("Unpickling a python object failed: %r\n" "You may need to pass the encoding= option " - "to numpy.load" % (err,)) + "to numpy.load" % (err,)) from err else: if isfileobj(fp): # We can use the fast fromfile() function. |