Getting error in executing custom actions

If you read the error, you can see your Python code is the problem.

tracker.latest_message['text'] does not include a : and therefore it does not split.