Test_create_update_comments

I am getting the following errors when I run test on test_create_update_comments and test_delete_comments.

TypeError: ‘NoneType’ object is not subscriptable
Any ideas why am receiving this TypeError?

Hi @Wilson_47220,

This error occurs when the list is returned empty. Please debug your code and make sure all none variable is returning empty.

Kanika

Yes, it is true. I made a silly error that made my call to get_movie returned an empty list.
Found it and all is okay now.

Thank you.

1 Like