The remove it. Or add an assert statement. Or, if it's always supposed to be there just write:
```
indexes = self.get_indexes(params['date']) 
```