Skip to content

Commit

Permalink
Improve the error message in _split()
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Aug 27, 2024
1 parent cfea2b6 commit a1b4fbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sounddevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a1b4fbc

Please sign in to comment.