summaryrefslogtreecommitdiff
path: root/numpy/lib/_datasource.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-09-02 21:32:21 +1200
committerMike Taves <mwtoews@gmail.com>2021-09-02 22:56:43 +1200
commit7ad8ea7b11e3544b133d8b397dd3bbe4833d3308 (patch)
tree8726a71692b20b079cec53e76f5c1fb33c806d7b /numpy/lib/_datasource.py
parent9fca8f0c1a3f16f8f62ae574ec1a79b5b588214e (diff)
downloadnumpy-7ad8ea7b11e3544b133d8b397dd3bbe4833d3308.tar.gz
MAINT: revise OSError aliases (IOError, EnvironmentError)
Diffstat (limited to 'numpy/lib/_datasource.py')
-rw-r--r--numpy/lib/_datasource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py
index c790a6462..56b94853d 100644
--- a/numpy/lib/_datasource.py
+++ b/numpy/lib/_datasource.py
@@ -530,7 +530,7 @@ class DataSource:
return _file_openers[ext](found, mode=mode,
encoding=encoding, newline=newline)
else:
- raise IOError("%s not found." % path)
+ raise FileNotFoundError(f"{path} not found.")
class Repository (DataSource):