First time here? Check out the FAQ!
The error is self-explanatory. You are trying to subscript an object which you think is a list or dict, but actually is