summaryrefslogtreecommitdiff
path: root/sounddevice.py
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2024-08-27 21:03:24 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2024-08-27 21:03:24 +0200
commita1b4fbc3aff659e3063b228e355b1e6ebbeec656 (patch)
tree00f767e6746ff932d2fc7dde10f8f0c6ed2afa5f /sounddevice.py
parentcfea2b6743224eb5e91b37aa80aedd3d8b0e3931 (diff)
Improve the error message in _split()
Diffstat (limited to 'sounddevice.py')
-rw-r--r--sounddevice.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 7010364..18f7d1d 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -2747,7 +2747,8 @@ def _split(value):
except TypeError:
invalue = outvalue = value
except ValueError as e:
- raise ValueError('Only single values and pairs are allowed') from e
+ raise ValueError(
+ f'Only single values and pairs are allowed, not {value!r}') from e
return invalue, outvalue