spotify / pedalboard

🎛 🔊 A Python library for audio.
https://spotify.github.io/pedalboard
GNU General Public License v3.0
4.96k stars 249 forks source link

Index Error with name_chars for empty list #319

Closed jagusant closed 1 month ago

jagusant commented 2 months ago

I'm running into this Index error:

site-packages/pedalboard/_pedalboard.py", line 586, in normalize_python_parameter_name name_chars[-1]

I figured I can add this condition line in the code to _pedalboard.py to fix this index error. Basically adding a check to make sure name_chars is not empty before attempting to access name_chars[-1].

Screenshot 2024-04-26 at 1 05 48 PM
czerpa-antdev commented 1 month ago

+1 on this

psobot commented 1 month ago

Fixed by #331.