sorry, changed my mind, let's do 
```python
if encoding is not None and engine != 'xlwt':
    raise ValueError("Can only specify encoding for xlwt")
```