summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2015-10-20 21:57:03 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2015-10-20 21:57:03 +0200
commit80526f1abac7e3ed8a5d25e73df23c00867e9d65 (patch)
tree1c83debf82291bb50306ee88c25d094ecd666fb1
parent3057cd3e579588c796632f64b6f7844c053b0501 (diff)
Bugfix in exception message
-rw-r--r--sounddevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 4562304..d91ff28 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -2268,7 +2268,7 @@ def _check_dtype(dtype):
elif dtype == 'float64':
dtype = 'float32'
else:
- raise TypeError("Unsupported data type: %s" % repr(dtype.name))
+ raise TypeError("Unsupported data type: %s" % repr(dtype))
return dtype