spotify / pedalboard

🎛 🔊 A Python library for audio.

Home Page:https://spotify.github.io/pedalboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Index Error with name_chars for empty list

jagusant opened this issue · comments

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

+1 on this

Fixed by #331.