Hmmm, I'm not sure what to make of this. The problem is not c['period_id'] as Python will create the key if it does not exist, and the rest of the line is phrased such that vals['period_id'] gets evaluated only if it exists. Can you double check this again and post the full backtrace? Thanks so much for trying out the patch.
Hmmm, I'm not sure what to make of this. The problem is not c['period_id'] as Python will create the key if it does not exist, and the rest of the line is phrased such that vals['period_id'] gets evaluated only if it exists. Can you double check this again and post the full backtrace? Thanks so much for trying out the patch.