We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc8b67a + 66046bb commit 161e930Copy full SHA for 161e930
soundfile.py
@@ -1295,8 +1295,8 @@ def _check_dtype(self, dtype):
1295
try:
1296
return _ffi_types[dtype]
1297
except KeyError:
1298
- raise ValueError("dtype must be one of {0!r}".format(
1299
- sorted(_ffi_types.keys())))
+ raise ValueError("dtype must be one of {0!r} and not {1!r}".format(
+ sorted(_ffi_types.keys()), dtype))
1300
1301
def _array_io(self, action, array, frames):
1302
"""Check array and call low-level IO function."""
0 commit comments