Yeah I second the comment by Omar. When you reference atttributes by name make sure spelling and case match exactly. Blender python attributes are type and grammar sensitive. Even if that wasn’t the whole issue it’s good to remember.
Don’t sweat making mistakes! You did the right thing by taking a break and coming back. Sometimes we are literally too close to these trees to see the forest (nailed that pun!)