diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:59:29 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-07-03 06:59:29 +0000 |
commit | 638f015c904d32e0f89604d088731a3ad2daccfd (patch) | |
tree | c9357546bd58a361b2fca2bbff75c1b6b0cbb294 /numpy/lib/_datasource.py | |
parent | f912322ee454fee1d15da01c5fd951ab2fcb5f99 (diff) | |
download | numpy-638f015c904d32e0f89604d088731a3ad2daccfd.tar.gz |
BUG: need to create exceptions correctly.
Diffstat (limited to 'numpy/lib/_datasource.py')
-rw-r--r-- | numpy/lib/_datasource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py index bd69b45f2..0dc744dbc 100644 --- a/numpy/lib/_datasource.py +++ b/numpy/lib/_datasource.py @@ -211,14 +211,14 @@ class DataSource (object): openedurl = urlopen(path) file(upath, 'w').write(openedurl.read()) except URLError: - raise URLError("URL not found: ", path) + raise URLError("URL not found: %s" % path) else: try: # TODO: Why not just copy the file with shutils.copyfile? fp = file(path, 'r') file(upath, 'w').write(fp.read()) except IOError: - raise IOError("File not found: ", path) + raise IOError("File not found: %s" % path) return upath def _findfile(self, path): |