don't you need to check that time_label is in self.data ?