Failure to start program when changing Experiment info in settings

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2020.2.4
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: Changing experiment info settings: Deleting “session” info worked, but when changing from “participant” to “code” (or something else), the experiment does not start running, although the experiment info query does still appear. Moreover, the script closes without error notification.

What did you try to make it work?: I did try different alternatives for “participant”, but nothing worked.

What specifically went wrong when you tried that?:
As there was no error message, I’m completely clueless as to what went wrong…

In the Experiment Settings, if you go to the Data tab, the default value for Data filename includes a call to the key participant from the dialog box output when constructing the filename. It’s probably crashing when it reaches that point and there is no key participant, so all you need to do is change that value to something else, e.g.

u'data/%s_%s_%s' % (expInfo['code'], expName, expInfo['date'])

Thanks a lot - that’s extremely helpful!