Hi all -
I'm testing out otree 5 and converting a few existing otree 3 apps to the new format.
I'm encountering a problem in a Page's before_next_page method. I have a line of code where I assign the value of a player field to participant.vars:
player.participant.vars['current_q1_belief'] = player.q1_belief
When I submit that page, I get the following error for that line:
TypeError: player.q1_belief is None. Accessing a null field is considered an error.
This is an expected value for that field (and this app worked in oTree 3) - is this expected behavior? Do I need to rewrite my software to avoid accessing fields who have value None?
Thanks,
--Chris