mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 08:49:15 +08:00
Clean up error message.
This commit is contained in:
@@ -33,8 +33,8 @@ def imread(fname, dtype=None):
|
||||
# this will raise an IOError if the file is not readable
|
||||
im.getdata()[0]
|
||||
except IOError:
|
||||
raise ValueError('Could not load "%s": make sure you have library '
|
||||
'support for "%s" files' % (fname, im.format))
|
||||
raise ValueError('Could not load "%s": make sure you have external library '
|
||||
'installed for "%s" files' % (fname, im.format))
|
||||
else:
|
||||
return pil_to_ndarray(im, dtype)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user