remove line 225 and use:
```python
if action.strip() == 'do not':
```