diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2024-08-27 21:03:24 +0200 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2024-08-27 21:03:24 +0200 |
| commit | a1b4fbc3aff659e3063b228e355b1e6ebbeec656 (patch) | |
| tree | 00f767e6746ff932d2fc7dde10f8f0c6ed2afa5f | |
| parent | cfea2b6743224eb5e91b37aa80aedd3d8b0e3931 (diff) | |
Improve the error message in _split()
| -rw-r--r-- | sounddevice.py | 3 |
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 |
