Can NOT add new parallel port code into psychopy

OS:win 10
PsychoPy version: 2023.1.2
What are you trying to achieve?:
I try to run a EEG task with a parallel port to send marks. the computer port address is CFF0, which must be correct because I can send mark with this address in Eprime.
I try to use parallel component in psychopy, which require to add a new address. So I click “file → preferences → Hardware → parallel ports” to add a new address. And I tapped “0xCFF0”, then “OK”.
However, a error come up, “list indices must be integers or slices, not NoneType”

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\preferencesDlg.py”, line 913, in OnOKClicked
self.applyPrefs()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\preferencesDlg.py”, line 799, in applyPrefs
self.audioDevNames[thisPref]
TypeError: list indices must be integers or slices, not NoneType