Skip to content

Commit 80526f1

Browse files
committed
Bugfix in exception message
1 parent 3057cd3 commit 80526f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sounddevice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2268,7 +2268,7 @@ def _check_dtype(dtype):
22682268
elif dtype == 'float64':
22692269
dtype = 'float32'
22702270
else:
2271-
raise TypeError("Unsupported data type: %s" % repr(dtype.name))
2271+
raise TypeError("Unsupported data type: %s" % repr(dtype))
22722272
return dtype
22732273

22742274

0 commit comments

Comments
 (0)